jiggzson / nerdamer

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

nerdamer.convertToLaTeX giving unexpected result #613

Open Anonymus0999 opened 3 years ago

Anonymus0999 commented 3 years ago

Thank you for the fix #610 Now one more problem in nerdamer.convertToLaTeX('math string') if my math string is this ----->sin(sqrt(e^x)) and after using nerdamer.convertToLaTeX it is giving \mathrm{sin}\left(\sqrt{e,^,x}\right). This is unexpected (e,^,x) with unnecessary commas.

But if my math string is this ----->sqrt(e^x) then after nerdamer.convertToLaTeX is is giving \sqrt{{e}^{x}}. This is correct.