simplifyConstant
simplifyConstant(expr)
simplifyConstant(expr, options)
Replace constant subexpressions of node with their values.
Try it yourself:
$1 | simplifyConstant("(3-3)*x")
| |
$2 | simplifyConstant(parse("z-cos(tau/8)"))
|
See also:
All functions