I have a polynomial,for example 3x
4
- 5x + 4
.
Assume that I have an array A = { 3, 0, 0, -5, 4 }
with the polynomial's coefficients.
How can I use the array A
to find the roots of the polynomial?
Is there any function or library to download to do it?
[Note: Original question was about a quadratic: 3x
2
- 5x + 4
.]
I found this: http://commons.apache.org/proper/commons-math/apidocs/org/apache/commons/math3/analysis/solvers/LaguerreSolver.html
How can I get the roots of the polynomial and store them in a an array B?...