differentiate
Computes the numerical derivative df/dx of an infix expression f(x) at a specified point. Provide the expression and x value; optional step h and angle mode.
Instructions
When: numerical derivative df/dx of infix f(x) at a point (not symbolic). Params: expression in x; at; angle_mode; optional h step. Example: expression="x^3", at=2.
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": {
"expression": "<expression>",
"at": "<at>"
},
"name": "differentiate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| at | Yes | ||
| angle_mode | No | rad | |
| expression | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |