Mathematica 9 is now available

ByteCountStreams

LeafCount

FilledSmallSquareLeafCount[expr] gives the total number of indivisible subexpressions in expr.

FilledSmallSquareLeafCount gives a measure of the total "size" of an expression.

FilledSmallSquareLeafCount counts the number of subexpressions in expr which correspond to "leaves" on the expression tree.

FilledSmallSquare Example: LeafCount[1 + a + b^2] LongRightArrow.

FilledSmallSquareLeafCount is based on FullForm representation of expressions.

FilledSmallSquare Numbers with heads Rational and Complex are treated as composite objects, just as in FullForm.

FilledSmallSquare See The Mathematica Book: Section 2.13.4.

FilledSmallSquare See also: ByteCount, Length, Depth, AtomQ.

Further Examples

ByteCountStreams



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.