Is there a good math parser in Javascript? I want to be able to parse something like:
LOG(3.14)+5^2+POW(2,LN(X*2,Y))
Thanks,
Math. js is an extensive math library for JavaScript and Node.
Math. js can be installed using various package managers like npm, or by just downloading the library from the website: https://mathjs.org/download.html.
An asterisk ( * ) is used to represent the multiplication operator.
Here is a brand new initiative:
http://mathjs.org
Comes with an extensive and easy to use parser which also supports assignment and usage of variables and functions like in your example expression.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With