pint.utils.numeric_partial

pint.utils.numeric_partial(f: Callable, args: List | Tuple, ix: int = 0, delta: float = 1e-06) float[source]

Compute the partial derivative of f numerically.

This uses symmetric differences to estimate the partial derivative of a function (that takes some number of numeric arguments and may return an array) with respect to one of its arguments.