MmaTranslator[Mma] - Maple Programming Help

Home : Support : Online Help : Connectivity : Mathematica Translator : Mma : MmaTranslator/Mma/LeafCount

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}[\mathrm{Mma}]\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)