simplify<A extends Expr> function
Simplifies an expression using basic algebraic rules and constant folding.
Implementation
A simplify<A extends Expr>(Expr expr, [Params? params]) =>
currentContext.simplify(expr) as A;