nicolewhite / algebra.js

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

Possible issue when solving x^3-2x^2+x+5=0 #50

Closed sonnyk22 closed 8 years ago

sonnyk22 commented 8 years ago

I believe the result for the equation x^3-2x^2+x+5=0 should be -1.11634, instead AlgebraJS returns twice the value which is -2.0235238177480417, as shown below.

Equation: x^3-2x^2+x+5=0 calc1

Result: -2.0235238177480417 calc2

Is there something I can do on my side, so that eq.solveFor("x") function would provide me with this result?

nicolewhite commented 8 years ago

Looks like a bug. I'll take a look.

mirsaeedi commented 8 years ago

Is there any updates about this issue? currently i`m creating my equation expression by using Algebra.js, and then solving it by using nerdamer: https://github.com/jiggzson/nerdamer