Allroot is an implementation of a numerical root solver for polynomials in the form of:
y = an x n + an-1xn-1...+a0
This code uses the Newton's method to zero in on the root, the answer is displayed. To find additional roots, synthetic division is done to eliminate the root from the equation. This process is repeated multiple times until Newton's method is non-converging.
x1 = x0 - f( x0 ) / f'( x0 )
- Enter the degree of the polynomial. This means the exponent of the highest variable of the polynomial and press the Enter key.
- Enter the coefficients of each variable exponent with the Enter key pressed after each coefficent is entered. If there is no coefficent to a corresponding exponent, enter 0.
- After all the coefficients are entered, the roots of the polynomial will be displayed below
y = 2x3+4x2-2
For this example, enter 3 for the exponent then 2, 4, 0 and -2 for the coefficents