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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"function_def": "<function_def>",
"point": "<point>"
},
"name": "differentiate_numerical"
}
}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') |