Relative/Absolute precision of Newton's method

723 Views Asked by At

I was asked to calculate the relative and absolute precision of my implementation of Newton's method and I wanted to make sure I understand it correctly.

According to the method:

$$x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}$$

So if I understand correctly:

  1. Absolute error is $\frac{|f(x_n)|}{|f'(x_n)|}$
  2. Relative error is $\frac{|x_{n+1}|}{|x_n|}$

Is that correct?

1

There are 1 best solutions below

0
On

If:

  • $x_{\infty}$ is precise value you want to find

  • $x_{n+1}$ your best approximation

then absolute error $\epsilon$ will be :

$$\epsilon = | x_{\infty} - x_{n+1}|$$

and relative error $\eta$ will be:

$$ \eta = \frac{\epsilon}{|x_{\infty}|}$$