LeafCount - Maple Help

# Online Help

###### All Products    Maple    MapleSim

MmaTranslator[Mma]

 LeafCount
 return the total number of indivisible expressions

 Calling Sequence LeafCount(arguments)

Parameters

 arguments - Maple translation of the Mathematica command arguments

Description

 • The LeafCount command returns the total number of indivisible subexpressions in the specified expression.

Examples

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\left[\mathrm{Mma}\right]\right):$

Use the command with the Maple translation.

 > $\mathrm{LeafCount}\left(a\left(b+c\right)\right)$
 ${4}$ (1)

Alternatively, you can use the FromMma command with the evaluate option specified.

 > $\mathrm{with}\left(\mathrm{MmaTranslator}\right):$
 > $\mathrm{FromMma}\left(\mathrm{LeafCount\left[a\left[b + c\right]\right]},\mathrm{evaluate}\right)$
 ${4}$ (2)

 See Also