|
Peano
|
Functions | |
| static auto | partialX (auto f, const auto x, const auto y, const auto t) |
| Approximates the partial derivative ∂f/∂x of a function f(x, y, t) using central differences. | |
| static auto | partialY (auto f, const auto x, const auto y, const auto t) |
| Approximates the partial derivative ∂f/∂y of a function f(x, y, t) using central differences. | |
| static auto | partialT (auto f, const auto x, const auto y, const auto t) |
| Approximates the partial derivative ∂f/∂t of a function f(x, y, t) using central differences. | |
|
static |
Approximates the partial derivative ∂f/∂t of a function f(x, y, t) using central differences.
This lambda computes the numerical derivative of a scalar function with respect to the t-direction via a second-order central difference scheme. The step size is adaptively chosen based on machine precision to balance truncation and rounding errors.
| f | The function to differentiate; must accept (x, y, t) as input |
| x | The x-coordinate (passed to f but not differentiated) |
| y | The y-coordinate (passed to f but not differentiated) |
| t | The time value at which the derivative is evaluated |
Definition at line 42 of file MathDerivatives.cpph.
|
static |
Approximates the partial derivative ∂f/∂x of a function f(x, y, t) using central differences.
This lambda computes the numerical derivative of a scalar function with respect to the x-direction via a second-order central difference scheme. The step size is adaptively chosen based on machine precision to balance truncation and rounding errors.
| f | The function to differentiate; must accept (x, y, t) as input |
| x | The x-coordinate at which the derivative is evaluated |
| y | The y-coordinate (passed to f but not differentiated) |
| t | The time value (passed to f but not differentiated) |
Definition at line 6 of file MathDerivatives.cpph.
|
static |
Approximates the partial derivative ∂f/∂y of a function f(x, y, t) using central differences.
This lambda computes the numerical derivative of a scalar function with respect to the y-direction via a second-order central difference scheme. The step size is adaptively chosen based on machine precision to balance truncation and rounding errors.
| f | The function to differentiate; must accept (x, y, t) as input |
| x | The x-coordinate (passed to f but not differentiated) |
| y | The y-coordinate at which the derivative is evaluated |
| t | The time value (passed to f but not differentiated) |
Definition at line 24 of file MathDerivatives.cpph.