Skip to main content

Module adaptive

Module adaptive 

Source
Expand description

Adaptive derivatives with error estimates by Richardson extrapolation (Ridders’ method), the counterpart of scipy.differentiate.derivative, jacobian and hessian.

Central differences with a decreasing sequence of steps h, h/c, h/c², … are combined in a Neville tableau that cancels the even powers of h in their truncation error. The entry whose change from its neighbours is smallest is returned, with that change as the error estimate, and the iteration stops when rounding error starts to dominate.

See the book entry Adaptive derivatives.

Structs§

DerivativeOptions
Options for derivative.
DerivativeResult
The result of derivative.

Functions§

derivative
f'(x) with an error estimate, by Ridders’ extrapolation of central differences.
hessian
The Hessian Hᵢⱼ = ∂²f/∂xᵢ∂xⱼ of f: ℝⁿ → ℝ, as the Jacobian of the gradient, both by Ridders’ method (as scipy.differentiate.hessian), symmetrised.
jacobian
The Jacobian Jᵢⱼ = ∂fᵢ/∂xⱼ of f: ℝⁿ → ℝᵐ, each column by Ridders’ method on the coordinate direction (as scipy.differentiate.jacobian), with the largest error estimate.