root_find
Find roots of a math expression using Newton's method or bisection, with configurable initial guess, bounds, tolerance, and iteration limit.
Instructions
Find roots of a math expression using Newton's method or bisection.
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>"
},
"name": "root_find"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Left bound (bisection). | |
| b | No | Right bound (bisection). | |
| x0 | No | Initial guess (Newton, default 1). | |
| method | No | Method: newton (default) or bisection. | |
| tolerance | No | Convergence tolerance (default 1e-10). | |
| expression | Yes | Math expression in x (e.g. 'x^2 - 4'). | |
| max_iterations | No | Max iterations (default 100). |