|
|
| Septic () |
| | Empty.
|
|
| Septic (const double &, const double &, const double &, const double &, const double &, const double &, const double &, const double &) |
| | Creates a septic polynomial.
|
| | Septic (const Sextic &) |
| | Creates a septic given a sextic.
|
| | Septic (const Quintic &) |
| | Creates a septic given a quintic.
|
| | Septic (const Quartic &) |
| | Creates a septic given a quartic.
|
| | Septic (const Cubic &) |
| | Creates a septic given a cubic.
|
| | Septic (const Quadric &) |
| | Creates a septic given a quadric.
|
|
| ~Septic () |
| | Empty.
|
|
constexpr double & | operator[] (int) |
| | Access to the coefficients of the septic.
|
|
constexpr double | operator[] (int) const |
| | Overloaded.
|
|
int | CheckDegree () const |
| | Check the degree of the septic.
|
|
Septic | operator- () const |
| | Unary.
|
|
Septic & | operator+= (const Septic &) |
| | Destructive sum of two septics.
|
|
Septic & | operator-= (const Septic &) |
| | Destructive difference of two septics.
|
|
Septic & | operator*= (const double &) |
| | Scale a septic by a double value.
|
|
Septic & | operator/= (const double &) |
| | Scale a septic by a double value.
|
|
Sextic | Prime () const |
| | Computes the first derivative of a septic, which is a sextic.
|
|
Quintic | Second () const |
| | Computes the second derivative of a septic.
|
|
Quartic | Third () const |
| | Computes the third derivative of a septic.
|
| double | K (const double &, const double &) const |
| | Compute the Lipschitz constant of the septic.
|
| constexpr double | operator() (const double &) const |
| | Evaluates the septic.
|
| constexpr double | Derivative (const double &) const |
| | Computes the derivative of the septic.
|
| int | Solve (double *) const |
| | Solve the septic equation.
|
| int | Solve (double *, const double &, const double &) const |
| | Search the roots of a septic equation over a given interval.
|
| void | Range (double &, double &, const double &=0.0, const double &=1.0) const |
| | Compute the range of values taken by a septic over a given interval.
|
|
| static double | Smooth (const double &) |
| | Compute the value of smooth \( C^3 \) interpolating function over unit interval.
|
| static double | SmoothStep (const double &, const double &, const double &) |
| | Compute a septic smooth step.
|
| static double | Gaussian (const double &, const double &, const double &) |
| | Compute a compactly supported Gaussian-like pulse.
|
| static Septic | Hermite (const double &, const double &, const double &, const double &, const double &, const double &, const double &, const double &) |
| | Creates an Hermite septic polynomial on interval [0,1].
|
Septic (heptic) polynomials.
Constructors should provide the coefficients in descending order. Example of how to code the septic \( 12x^7 - x + 1 \):
Septic p(12.0,0.0,0.0,0.0,0.0,0.0,-1.0,1.0);
Septic()
Empty.
Definition septic.h:12
| int Septic::Solve |
( |
double * | roots | ) |
const |
Solve the septic equation.
This function stores the roots in an array and returns the number of roots. The roots are not guaranteed to be sorted, and when Polynomial::Solve() uses the Sturm sequences, as the degree is larger than four, only the roots in the interval [-1e7,1e7] are found. See (double*, const double&, const double&) to select the roots in a given interval.
Calls Polynomial::Solve() when the leading coefficient is non-zero. Otherwise cascades to lower-degree solvers (Sextic down to Quadric) by dropping zero leading coefficients.
- Parameters
-
- Returns
- The number of roots.