1

Given $a \in (0.5, 1)$, one seeks to compute $\frac 1a$ using Newton–Raphson method with $$f(x) = a − \frac 1x$$

Taking $x_0 = 1.5$, compute $x_2$ and estimate which $x_n$ is first correct to $100$ decimal places, taking the error as $|ax_k − 1|$

This is part c) of the question, part b) says a=0.7 but I am not sure if that is applicable here.

Also i know that $x_{k+1} = 2x_k - ax_k^2$

I'm really confused by this question because I really don't know what method I should be using. I know I want the error to be less than $1\times 10^{-100}$ but that's about it.

Lutz Lehmann
  • 126,666
Gragbow
  • 661

1 Answers1

0

You know from some simple computation that $1-ax_{n+1}=(1-ax_n)^2$ and thus by induction $$ |1-ax_n|=|1-ax_0|^{2^n} $$ As $|1-ax_0|\le\frac12$ given your data and $$ \log_2(\log_2(2·10^{100}))=8.380213456543983 $$ one gets a not too large upper bound on the number of steps. Of course, close to $\frac23$ one will need less steps than that.

Lutz Lehmann
  • 126,666