|
| Polynomial () |
| Creates a null polynomial.
|
|
| ~Polynomial () |
| Empty.
|
|
| Polynomial (const double &, const double &, const double &, const double &, const double &, const double &, const double &, const double &, const double &) |
| Creates a degree 8 polynomial.
|
|
| Polynomial (const double &, const double &, const double &, const double &, const double &, const double &, const double &, const double &) |
| Creates a septic.
|
|
| Polynomial (const double &, const double &, const double &, const double &, const double &, const double &, const double &) |
| Creates a sextic.
|
|
| Polynomial (const double &, const double &, const double &, const double &, const double &, const double &) |
| Creates a quintic.
|
|
| Polynomial (const double &, const double &, const double &, const double &, const double &) |
| Creates a quartic.
|
|
| Polynomial (const double &, const double &, const double &, const double &) |
| Creates a cubic.
|
|
| Polynomial (const double &, const double &, const double &) |
| Creates a quadric.
|
|
| Polynomial (const double &, const double &) |
| Creates a linear polynomial.
|
|
| Polynomial (const double &) |
| Creates a constant polynomial.
|
|
| Polynomial (const Linear &) |
| Creates a polynomial given a linear form. More...
|
|
| Polynomial (const Quadric &) |
| Creates a polynomial given a quadric form. More...
|
|
| Polynomial (const Cubic &) |
| Creates a polynomial given a cubic form. More...
|
|
| Polynomial (const Quartic &) |
| Creates a polynomial given a quartic form. More...
|
|
| Polynomial (const Quintic &) |
| Creates a polynomial given a quintic form. More...
|
|
| Polynomial (const Sextic &) |
| Creates a polynomial given a sextic form. More...
|
|
| Polynomial (const Septic &) |
| Creates a polynomial given a quintic form. More...
|
|
constexpr double & | operator[] (int) |
| Access to the cefficients of the polynomial.
|
|
constexpr double | operator[] (int) const |
| Overloaded.
|
|
Polynomial | operator+ () const |
| Overloaded.
|
|
Polynomial | operator- () const |
| Unary.
|
|
Polynomial & | operator+= (const Polynomial &) |
| Destructive sum of two polynomials.
|
|
Polynomial & | operator-= (const Polynomial &) |
| Destructive difference of two polynomials.
|
|
Polynomial & | operator*= (const Polynomial &) |
| Overloaded.
|
|
Polynomial & | operator*= (const double &) |
| Scale a polynomial by a double value. Optimizations are provided if scalar is 0.0 or 1.0.
|
|
Polynomial & | operator/= (const double &) |
| Scale a polynomial by a double value.
|
|
Polynomial | Prime () const |
| Compute the derivative of the polynomial.
|
|
Polynomial | Compose (const Polynomial &) const |
| Compose the polynomial by the argument polynomial. More...
|
|
double | operator() (const double &) const |
| Evaluates the polynomial. More...
|
|
double | operator() (const double &) |
| Evaluates the polynomial. More...
|
|
int | Solve (double *) const |
| Search the roots of a polynomial equation. More...
|
|
int | SturmSolve (double *) const |
| Search the roots of a polynomial equation using the Sturm sequences. More...
|
|
int | Solve (double *, const double &, const double &) const |
| Search the roots of a polynomial equation over a given interval. More...
|
|
int | Degree () const |
| Returns the degree of the polynomial.
|
|
void | Check () |
| Check the degree of the polynomial. More...
|
|
void | Range (double &, double &, const double &=0.0, const double &=1.0) const |
| This function computes the range of values taken by a polynomial over a given interval. More...
|
|
int | Bissection (double, double, double &, const double &) const |
| Compute the roots of a polynomial equation using bissection. More...
|
|
Polynomials of degree lower than or equal to 8.
This class is defined as a fixed size data-structure to speed-up and facilitate memory management. It is more memory and computationnally efficient to use Linear, Quadric, Cubic, and Quartic classes whenever possible.
When using constructors, the coefficients are given in descending order, i.e. start from the highest degree coefficient to the lowest degree.
Example of how to code the quartic polynomial 3 x4-x+1:
Polynomials of degree lower than or equal to 8.
Definition: polynomial.h:9
- See also
- Septic, Sextic, Quintic, Quartic, Cubic, Quadric, Linear.