Skip to main content

Module derivatives_1d_scalar

Module derivatives_1d_scalar 

Source
Expand description

Finite difference derivatives of scalar functions of one variable.

See the book entry Finite difference derivatives.

Enums§

DerivativeStencilOrder
Which derivative derivative_stencil approximates.

Functions§

derivative_2_point
The central difference (f(x + h) − f(x − h)) / 2h, a second-order approximation to f'(x).
derivative_stencil
A derivative of f at x from the five-point stencil f(x − 2h), …, f(x + 2h). Returns a one-element vector holding the requested derivative.