root_newton_raphson
Find roots of single-variable equations f(x)=0 via Newton-Raphson with numeric derivative. Returns root, iteration table, and convergence flag.
Instructions
Find a root of f(x) = 0 with the Newton-Raphson method (numeric derivative).
Args: func_str: Math expression in x. x0: Initial guess. tol: Convergence tolerance. max_iter: Maximum iterations. precision: Rounding digits.
Returns: Dict with the root, iteration table and convergence flag.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| tol | No | ||
| func_str | Yes | ||
| max_iter | No | ||
| precision | No |