Question
Write a Python program that solves $f(x) = x - \cos(x)$ using all three methods — Simple Iteration, Bisection, and Newton-Raphson — and produces a convergence comparison table:
| Iteration | Simple Iter $x$ | Bisection $x$ | Newton-Raphson $x$ |
|---|---|---|---|
Run all three for 10 iterations (or until tolerance $10^{-8}$ is reached). Print the table and state: which method reached the root fastest?