cortex-js / compute-engine

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

Solving simple equation with fraction gives empty result #128

Closed truebluepl closed 6 months ago

truebluepl commented 10 months ago

Current behaviour: console.log(ce.parse('\\frac{x}{3}=7').solve(["x"])); (equation can be also: x/3=7) returns empty array (empty string if stringified)

Expected behaviour: x=7*3=21, so should return 21.

arnog commented 6 months ago

This works now.