Mathematica > Expression Structure >

LeafCount

LeafCount[expr]
gives the total number of indivisible subexpressions in expr.
  • LeafCount gives a measure of the total "size" of an expression.
  • LeafCount counts the number of subexpressions in expr which correspond to "leaves" on the expression tree.
New in 1
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team