simplify
simplify(expr)
simplify(expr, rules)
Simplify an expression tree.
Try it yourself:
$1 | simplify("3 + 2 / 4")
| |
$2 | simplify("2x + x")
| |
$3 | f = parse("x * (x + 2 + x)")
| |
$4 | simplified = simplify(f)
| |
$5 | simplified.evaluate({x: 2})
|
See also:
All functions