e3x.ops.helpers.evaluate_derivatives
- e3x.ops.helpers.evaluate_derivatives(f, x, max_order)[source]
Evaluates the function f(x) and its derivatives up to a maximum order.
- Parameters:
f (
Callable[[Num[Array, '...']], Num[Array, '...']]) – Function that takes an array x as input and returns an array as output.x (
<class 'Num[Array, '...']'>) – Values at which to evaluate the function f and its derivatives.max_order (
int) – Maximum order of derivatives to evaluate.
- Return type:
- Returns:
A list of size max_order+1 containing f(x), f’(x), f’’(x), etc., with the i-th entry corresponding to the derivative of f of order i.