#include <Cubic.hpp>
|
| static double | pow3 (double x) |
| static double | pow3 (double x0, double x1) |
This static class offers some basic functions to raise values to the third power.
◆ pow3() [1/2]
| double Cubic::pow3 |
( |
double | x | ) |
|
|
inlinestatic |
This function returns \(x^3\).
◆ pow3() [2/2]
| double Cubic::pow3 |
( |
double | x0, |
|
|
double | x1 ) |
|
inlinestatic |
This function returns \(x_1^3 - x_0^3 = (x_1-x_0)(x_1^2 + x_1 x_0 + x_0^2)\). The second form is used because it is more numerically stable.
The documentation for this class was generated from the following file: