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.
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). |