#include <vnl_real_polynomial.h>
Collaboration diagram for vnl_real_polynomial:

Public Methods | |
| vnl_real_polynomial (vnl_vector< double > const &a) | |
| vnl_real_polynomial (double const *a, int len) | |
| vnl_real_polynomial (int d) | |
| double | evaluate (double x) const |
| vcl_complex< double > | evaluate (vcl_complex< double > const &x) const |
| vcl_complex< double > | devaluate (vcl_complex< double > const &x) const |
| int | degree () const |
| double & | operator[] (int i) |
| double | operator[] (int i) const |
| const vnl_vector< double > & | coefficients () const |
| vnl_vector< double > & | coefficients () |
| void | set_coefficients (const vnl_vector< double > &coeffs) |
Protected Attributes | |
| vnl_vector< double > | coeffs_ |
at given values of
, or of its derivative
.
Roots may be extracted using the roots() method.
Definition at line 31 of file vnl_real_polynomial.h.
|
|
Initialize polynomial. The polynomial is Definition at line 36 of file vnl_real_polynomial.h. References coeffs_. |
|
||||||||||||
|
Initialize polynomial from C vector. The parameter len is the number of coefficients, one greater than the degree. Definition at line 42 of file vnl_real_polynomial.h. |
|
|
Initialize polynomial of a given degree. Definition at line 46 of file vnl_real_polynomial.h. References coeffs_, and vnl_vector< double >::size(). |
|
|
Return the vector of coefficients. Definition at line 86 of file vnl_real_polynomial.h. |
|
|
Return the vector of coefficients. Definition at line 83 of file vnl_real_polynomial.h. |
|
|
Return the degree (highest power of x) of the polynomial. Definition at line 72 of file vnl_real_polynomial.h. References coeffs_. |
|
|
Evaluate derivative at complex value x. |
|
|
Evaluate polynomial at complex value x. |
|
|
Evaluate polynomial at value x. |
|
|
Access to the polynomial coefficients. Definition at line 79 of file vnl_real_polynomial.h. References coeffs_. |
|
|
Access to the polynomial coefficients. Definition at line 76 of file vnl_real_polynomial.h. |
|
|
Definition at line 88 of file vnl_real_polynomial.h. |
|
|
The coefficients of the polynomial. coeffs_[0] is the const term. coeffs_[n] is the coefficient of the x^n term. Definition at line 97 of file vnl_real_polynomial.h. Referenced by degree(), operator[](), and vnl_real_polynomial(). |
1.2.15 written by Dimitri van Heesch,
© 1997-2000