cortex-js / compute-engine

An engine for symbolic manipulation and numeric evaluation of math formulas expressed with MathJSON
https://cortexjs.io
MIT License
356 stars 42 forks source link

Adding new simplification rules is not working #179

Open andrew-murdza opened 2 months ago

andrew-murdza commented 2 months ago

Steps to Reproduce

    import { ComputeEngine } from 'https://unpkg.com/@cortex-js/compute-engine?module';
    const ce = new ComputeEngine();
    const expr1 = ce.parse('\\log(1)');
    const simplifiedExpr1 = expr1.simplify(["\\log(1)->0"]);
    console.log(simplifiedExpr1.toString());

Actual Behavior

log(1)

Expected Behavior

0

Environment

0.25.1