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

Improper N evaluation for certain fractions #24

Closed paulgrudnitski closed 2 years ago

paulgrudnitski commented 2 years ago

N(3 + 1/4) --> 3.75 N('3+\frac{1}{4}') --> 3.75

image

strickinato commented 2 years ago

This appears to be fixed in 0.4.3 🎉

image

> p.parse("3+1/4").N().json
3.25