Suppose that $x_0,x_1,\dots$ are the successive approximations of a solution of some iterative scheme (can think of successive approximations in Newton-Rapson method in finding root of a non-linear equation, for example). In general the following stopping criteria are used in approaching the root.
- $|x_{n+1}-x_n|<\epsilon$ (absolute error)
- $|f(x_n)|<\epsilon$
- $\frac{|x_{n+1}-x_n|}{|x_n|}<\epsilon$. (relative error)
I can understand the first two why they are used, how they work, when they fail, and so on. However, in books it is said that the third criterion is better than the first two. However, I am not able to see (i) why the third one works and (ii) how that is better than the first two.
Any explanation on this is greatly appreciated.