Power function with rational exponent \( k = \frac{dividend}{divisor} \) including first three derivatives.
More...
|
| Pow (double x=1) FUNCY_NOEXCEPT |
| Constructor. More...
|
|
void | update (double x) FUNCY_NOEXCEPT |
| Set point of evaluation. More...
|
|
double | d0 () const noexcept |
| Function value. More...
|
|
double | d1 (double dx=1.) const noexcept |
| First (directional) derivative. More...
|
|
double | d2 (double dx=1., double dy=1.) const noexcept |
| Second (directional) derivative. More...
|
|
double | d3 (double dx=1., double dy=1., double dz=1.) const noexcept |
| Third (directional) derivative. More...
|
|
template<int dividend, int divisor = 1>
struct funcy::Pow< dividend, divisor >
Power function with rational exponent \( k = \frac{dividend}{divisor} \) including first three derivatives.
For scalar functions directional derivatives are less interesting. Incorporating this function as building block for more complex functions requires directional derivatives. These occur during applications of the chain rule. For the cases \(k=-1\) and \(k=2\) specializations are used that avoid the use of std::pow.