jiggzson / nerdamer

a symbolic math expression evaluator for javascript
http://www.nerdamer.com
MIT License
514 stars 82 forks source link

nerdamer can't convert from latex expressions like \sqrt[a]{b} correctly #596

Closed MAGNETO903 closed 3 years ago

MAGNETO903 commented 3 years ago

I tried: nerdamer.convertFromLaTeX("\sqrt[2]{a}").toString() I expected: "sqrt(a)" or "a^(1/2)" or something like this But I got: "a*sqrt(2)"

Also: I tried: nerdamer.convertFromLaTeX("\sqrt[3]{2a}").toString() I expected: "(2a)^(1/3)" or "1.25992...*a^(1/3)" or something like this I got: "2*a*sqrt(3)"

jiggzson commented 3 years ago

@MAGNETO903, fixed on dev

MAGNETO903 commented 3 years ago

Great!