News for hackers. Stuff that matters.
Re:Show HN: Algebra.js – Build, display, and solve algebraic... by davmar on Friday August 14, 2015 @06:06PM (#10063277)
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.

Re:Show HN: Algebra.js – Build, display, and solve algebraic... by nicolewhite on Friday August 14, 2015 @11:03PM (#10064152)
Thanks! 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

[1] https://news.ycombinator.com/item?id=10042470