pint.utils.numeric_partials
- pint.utils.numeric_partials(f: Callable, args: List | Tuple, delta: float = 1e-06) float[source]
Compute all the partial derivatives of f numerically.
Returns a matrix of the partial derivative of every return value with respect to every input argument. f is assumed to take a flat list of numeric arguments and return a list or array of values.