3 ms·
this looks really neat and it must have been a lot of fun to build! it's not a feature request because I don't have a use case for this quite yet, but how comp
by davmar 11y ago
this looks really neat and it must have been a lot of fun to build!
it's not a feature request because I don't have a use case for this quite yet, but how complex would it be to parse a string that contains a formula? for example, it seems useful to be able to load equations by just sending the string "2x - 3 = 4" to a function.
that sounds like a fun problem to solve as well. maybe useful to the library too. just a thought! great work on this library and thanks for publishing.
- nicolewhite 11y agoThanks! Fun was the main motivation for this project. Parsing strings into expressions is something that math.js offers currently with math.parse and expression trees[0]; I was discussing it with the author the other day[1]. [0] http://mathjs.org/docs/expressions/expression_trees.html http://mathjs.org/docs/expressions/expression_trees.html [1] https://news.ycombinator.com/item?id=10042470 https://news.ycombinator.com/item?id=10042470