Peano
Loading...
Searching...
No Matches
numerics::_3D Namespace Reference

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.
 

Function Documentation

◆ partialT()

static auto numerics::_3D::partialT ( auto f,
const auto x,
const auto y,
const auto t )
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.

Parameters
fThe function to differentiate; must accept (x, y, t) as input
xThe x-coordinate (passed to f but not differentiated)
yThe y-coordinate (passed to f but not differentiated)
tThe time value at which the derivative is evaluated
Returns
Approximation of ∂f/∂t at (x, y, t)

Definition at line 42 of file MathDerivatives.cpph.

◆ partialX()

static auto numerics::_3D::partialX ( auto f,
const auto x,
const auto y,
const auto t )
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.

Parameters
fThe function to differentiate; must accept (x, y, t) as input
xThe x-coordinate at which the derivative is evaluated
yThe y-coordinate (passed to f but not differentiated)
tThe time value (passed to f but not differentiated)
Returns
Approximation of ∂f/∂x at (x, y, t)

Definition at line 6 of file MathDerivatives.cpph.

◆ partialY()

static auto numerics::_3D::partialY ( auto f,
const auto x,
const auto y,
const auto t )
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.

Parameters
fThe function to differentiate; must accept (x, y, t) as input
xThe x-coordinate (passed to f but not differentiated)
yThe y-coordinate at which the derivative is evaluated
tThe time value (passed to f but not differentiated)
Returns
Approximation of ∂f/∂y at (x, y, t)

Definition at line 24 of file MathDerivatives.cpph.