simplify<A extends Expr> function

A simplify<A extends Expr>(
  1. Expr expr, [
  2. Params? params
])

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;