pint.utils.numeric_partials
- pint.utils.numeric_partials(f, args, delta=1e-06)[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.