The following code
m.require("mathjs");
var node = m.simplify("y+x",[{l:'n1-n2',r:'-n2+n1'}],{x:5})
Generates the error message:
Too many arguments in function simplify (expected: 2, actual: 3)
The syntax presents as one of the options:
simplify(expr, rules, scope)
The following code
Generates the error message:
The syntax presents as one of the options:
simplify(expr, rules, scope)