Convergence of fixed point iteration¶
We revisit Fixed point iteration and investigate the observed convergence more closely. Recall that above we calculated g′(r)≈−0.42 at the convergent fixed point.
Here is the fixed point iteration. This time we keep track of the whole sequence of approximations.
It’s easiest to construct and plot the sequence of errors.
It’s quite clear that the convergence quickly settles into a linear rate. We could estimate this rate by doing a least-squares fit to a straight line. Keep in mind that the values for small k should be left out of the computation, as they don’t represent the linear trend.
We can exponentiate the slope to get the convergence constant σ.
The numerical values of the error should decrease by a factor of σ at each iteration. We can check this easily with an elementwise division.
The methods for finding σ agree well.