mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
10 lines (9 loc) • 384 B
JavaScript
;
module.exports = {
'name': 'simplify',
'category': 'Algebra',
'syntax': ['simplify(expr)', 'simplify(expr, rules)'],
'description': 'Simplify an expression tree.',
'examples': ['simplify("3 + 2 / 4")', 'simplify("2x + x")', 'f = parse("x * (x + 2 + x)")', 'simplified = simplify(f)', 'simplified.eval({x: 2})'],
'seealso': ['derivative', 'parse', 'eval']
};