gradient
Compute the vector of partial derivatives of a scalar expression with respect to specified variables for symbolic math and vector calculus.
Instructions
Compute the gradient of a scalar expression with respect to the given variables.
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": {
"expr": "<expr>",
"variables": "<variables>"
},
"name": "gradient"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | ||
| variables | Yes |