next up previous contents
Next: Solving trigonometric equation Up: Solving with Interval Analysis Previous: Example   Contents

Solving univariate polynomial numerically

As an alternative to interval solving ALIAS proposes a numerical algorithm

 
ALIAS_Solve_Poly((double *C, int *Degree,double *Sol),
The arguments are the coefficients C of the polynomial, a pointer to the integer Degree that is initially the degree of the polynomial and Sol which will be used to store the real roots. This procedure returns the number of real roots or -1 if the computation has failed. The procedure ALIAS_Solve_Poly_PR takes the same arguments but returns the real part of the roots.

There is also a version of the Newton scheme for univariate polynomial:

 
int Fast_Newton(int Degree,REAL *Input,VECTOR &Coeff,VECTOR &CoeffG,
           double Accuracy,int Max_Iter,REAL *Residu)
where This procedure returns -1 if the derivative polynomial is 0. Otherwise it returns 1 if a solution has been found or 0 if Max_Iter iteration has been completed.


next up previous contents
Next: Solving trigonometric equation Up: Solving with Interval Analysis Previous: Example   Contents
Jean-Pierre Merlet 2012-12-20