find_roots
Compute a scalar root of a mathematical expression by supplying a bracket for brentq or an initial guess x0 for Newton's method.
Instructions
Find a scalar root of an expression using brentq (bracket) or Newton's method (x0).
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>"
},
"name": "find_roots"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | No | ||
| expr | Yes | ||
| params | No | ||
| bracket | No | ||
| variable | No | x |