Fixed Point Iteration
Solve x = g(x) numerically: enter your g(x) expression, initial guess, tolerance, and see every iteration in a table until convergence.
Parameters
Quick examples
Root (x*)
—
Iterations
—
Final error
—
g(x*)
—
Enter parameters and click Run Iteration
| n | xn | g(xn) | Error |xn+1 − xn| |
|---|
Summary
Solve x = g(x) numerically: enter your g(x) expression, initial guess, tolerance, and see every iteration in a table until convergence.
How it works
- Express your equation in the form x = g(x) and enter g(x) in the input field.
- Provide an initial guess x0 close to the expected root.
- Set a convergence tolerance (e.g. 0.0001) and a maximum iteration count.
- Click "Run Iteration" to compute x_(n+1) = g(x_n) repeatedly.
- Each step is displayed in a table showing n, x_n, g(x_n), and the absolute error |x_(n+1) - x_n|.
- Iteration stops when the error falls below the tolerance (converged) or the maximum count is reached (diverged or slow convergence).
Use cases
- Find roots of transcendental equations like cos(x) = x.
- Verify fixed-point iteration convergence in numerical analysis courses.
- Explore how the choice of g(x) and x0 affects convergence speed.
- Demonstrate divergence when |g'(x)| >= 1 near the root.
- Solve engineering equations iteratively without needing derivatives.
- Cross-check hand-computed iteration tables for homework problems.
Frequently Asked Questions
Last updated: 2026-06-10 ·
Reviewed by Nham Vu