Functions | |
template<class T, class U> | |
int | jenkinsTraubZeros (const Polynomial< T > &P, std::vector< std::complex< U > > &zeros, bool polish) |
template<class T, class U> | |
int | laguerreZeros (const Polynomial< T > &P, std::vector< std::complex< U > > &zeros, bool polish) |
template<class T, class U> | |
int | mullerZeros (const Polynomial< T > &P, std::vector< std::complex< U > > &zeros, bool polish) |
template<class T, class U, class V> | |
bool | newtonZero (const Polynomial< T > &p, U &z, U &pz, V &mpz, bool adaptive=false) |
template<class T> | |
int | removeNullZeros (Polynomial< T > &p) |
template<class T> | |
void | sortZeros (std::vector< std::complex< T > > &zeros) |
template<class T> | |
T | solveDegree1 (const T &a, const T &b) |
template<class T, class U> | |
void | solveDegree2 (const T &a, const T &b, const T &c, U &z1, U &z2) |
|
Jenkins-Traub polynomial zeros evaluator. returns all zeros of polynomial
Definition at line 55 of file jenkinstraub.h. |
|
modified Laguerre polynomial zeros evaluator. Returns all zeros of polynomial . This is a very good roots evaluator, that can be pushed to the limits. It will quickly find the roots of even quite large polynomials (>1000 coeficients) in a reasonable amount of time. It is also very precise and the roots usually will not need any further polishing.
Definition at line 62 of file laguerre.h. |
|
Muller'method polynomial roots evaluator. returns all zeros of polynomial
|
|
resolves closest zero by Newton-Raphson iterations. This function requires an initial zero estimate that is fairly close.
Definition at line 73 of file polyzero.h. |
|
divides a polynomial by , until is has no null roots. Deflates the polynomial p until it has no null roots, effectively dividing by until the coeficient of degree zero is not null.
Definition at line 168 of file polyzero.h. |
|
returns the root of a degree 1 polynomial. Returns the unique root of the polynomial
Definition at line 350 of file polyzero.h. |
|
returns the root of a degree 2 polynomial. Returns the two roots of the polynomial . The roots z1 and z2 are calculated as follows.
This method avoids dividing by a very small number and thus reduces error.
Definition at line 383 of file polyzero.h. |
|
sorts the zeros of a polynomial. Sorts the zeros of a polynomial by ascending order of their real part.
Definition at line 328 of file polyzero.h. |