leafCount
leafCount(expr)
Computes the number of leaves in the parse tree of the given expression
Try it yourself:
$1 | leafCount("e^(i*pi)-1")
| |
$2 | leafCount(parse("{a: 22/7, b: 10^(1/2)}"))
|
See also:
All functions