nicolewhite / algebra.js

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

Issue with solving for 4x^4-3x^3+2x^2=1 #51

Closed sonnyk22 closed 8 years ago

sonnyk22 commented 8 years ago

I am having problem getting any result coming back for the equation of 4x^4-3x^3+2x^2=1. It seems that AlgebraJS is parsing it well, but it is throwing an exception when it is trying to solve, as shown below.

Equation: 4x^4-3x^3+2x^2=1 calc1

Result: An exception at this moment calc2

The answers should be -0.479, 0.7219. Is there something I can do on my side, so that eq.solveFor("x") function would provide results?

nicolewhite commented 8 years ago

It doesn't solve quartics yet. See https://github.com/nicolewhite/algebra.js/issues/10.