differentiate_numerical
Compute numerical derivatives of a Python function at a specific point using autograd. Specify the function, point, and order (gradient or Hessian) to get exact values.
Instructions
Compute numerical derivatives using autograd for specific function values
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order | No | Order of derivative (1 for gradient, 2 for Hessian) | |
| point | Yes | Point at which to evaluate the derivative | |
| function_def | Yes | Python function definition using autograd.numpy (e.g., 'lambda x: anp.sin(x) + x**2') |