nicolewhite / algebra.js

Build, display, and solve algebraic equations.
http://algebra.js.org
MIT License
1.34k stars 111 forks source link

Update equation examples to algebra.parse() #33

Closed dannbuckley closed 9 years ago

dannbuckley commented 9 years ago

Made examples easier to read by changing some of them to algebra.parse()

ivanistheone commented 9 years ago

I like both the explicit construction of Expressions and Equations (current version), but the new algebra.parse way is also good to show because it's faster to type.

What about leaving the initial examples as they are, but show in the bottom how to obtain the same expressions and equations using the algebra.parse?

nicolewhite commented 9 years ago

I think this is fine. The point of this section is to explain how .solveFor() works in different contexts, so I like using the parser here because it's less distracting.