One simple code to find the order of convergence of a fixed point iteration on Matlab is as following,
for each $n=0,1,2,...$
calculate $\log(|p_{n+1}|)/\log(|p_{n}|)$
The calculated value for each $n$ will converge to the order of convergence.
Note: $p_{0}\in \mathbb{R}$, $p_{n} = g(p_{n-1})$, where we are finding the fixed point of function $g$.
Question: I understand the idea of order of convergence, but i don't understand how this method works.
Please help me on this method. Thank you.
I have only defined one sequence.
– Little Rookie Mar 12 '17 at 14:23