cortex-js / compute-engine

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

Error after simplify #45

Closed smaxx73 closed 1 year ago

smaxx73 commented 2 years ago

Hi, here is my code :

const engine = new ComputeEngine()
expression = '2+\\frac{2+x}{2}'
expression2 = engine.parse(expression).simplify().latex

After printing expression = expression2 the result is : image

arnog commented 1 year ago

The result is now 3+\frac{x}{2}