Wilang Documentation1.0.0+4

simplify#

Simplify a numeric or symbolic expression.

Available in: math cells, REPL.

Syntax#

simplify(expression [, rules])

Arguments and behavior#

Symbolic expressions use the symbolic simplifier and return a displayed expression. Numeric inputs can return a number. The symbolic result is not a mathjs Node: do not chain .evaluate or .toString. Advanced mathjs context/rule options are not guaranteed for symbolic inputs. The example returns text.

Example#

Edit the inputs, then use Run or Reset. Changes stay in this example.

Example
simplify("2*x+3*x")

Expected result: 5*x.

See also#

simplifyCore · derivative · evaluate · parse · rationalize · resolve

All functions · Math guides