root_comparar
Compare bisection, fixed-point, Newton-Raphson, and Aitken methods on a single root-finding problem to evaluate convergence and accuracy.
Instructions
Compare bisection, fixed-point, Newton-Raphson and Aitken on the same problem.
Args: func_str: Math expression for f(x) (used by bisection/Newton). g_str: Math expression for g(x) (used by fixed-point/Aitken). a, b: Bracket for bisection (f(a) and f(b) must differ in sign). x0: Initial guess. tol, max_iter, precision: Shared tolerances.
Returns: Dict with per-method results.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | Yes | ||
| b | Yes | ||
| x0 | Yes | ||
| tol | No | ||
| g_str | Yes | ||
| func_str | Yes | ||
| max_iter | No | ||
| precision | No |