nicolewhite/algebra.js

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

sonnyk22 opened this issue · 2 comments

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?

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

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