Error and Representation
Stopping Criteria and Residual
Iterative methods need a halting rule. Two common criteria are small step-change (|x_n - x_{n-1}| < tol) and small residual (|f(x_n)| < tol). Applied to Newton's method on f(x)=x²-2 from x0=2 with tol=0.05: the iteration stops at step 3 when the step-change drops to 0.0025.
stopping-criteria-and-residual
At each iterate x_n, compute the step-change d_n = |x_n - x_{n-1}|. Stop when d_n < tol (step-change criterion) or when |f(x_n)| < tol (residual criterion). Newton's method on x²-2 converges fast, making tol=0.05 tight enough to stop at iteration 3.