root_punto_fijo
Find a fixed point of g(x)=x using fixed-point iteration. Input the iteration function and initial guess to get the fixed point, Lipschitz check, iteration table, and convergence flag.
Instructions
Find a fixed point of g(x) = x with the fixed-point iteration method.
Converges when |g'(x)| < 1 near the root (Lipschitz check is reported).
Args: g_str: Math expression for the iteration function g(x). x0: Initial guess. tol: Convergence tolerance. max_iter: Maximum iterations. precision: Rounding digits.
Returns: Dict with the fixed point, the Lipschitz check, iteration table and convergence flag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x0 | Yes | ||
| tol | No | ||
| g_str | Yes | ||
| max_iter | No | ||
| precision | No |