1. ## Approximation

I have a question in numerical analysis and I do not know where to put it so I post it here ok the question

Find the largest interval in which $\displaystyle p^{*}$ must lie to approximate $\displaystyle p$ with relative error at most $\displaystyle 10^{-4}$ for each value of p

$\displaystyle a.\pi \quad\quad b.e \quad\quad c.\sqrt{2} \quad\quad d.\sqrt[3]{7}$

I know that relative error = $\displaystyle \frac{\mid p-p^*\mid}{\mid p\mid}$

$\displaystyle p^*$ is the approximation to for $\displaystyle p$

can anyone tell me how I can solve questions like this ..........

Thanks

2. |p - p*| / |p| <= 10^(-4), so |p - p*| <= |p|.10^(-4).
(a) p = pi.
|pi - p*| <= pi.*10^(-4) = 3.14159 * 0.0001 = 0.000314
so pi - 0.000314 <= p* <= pi + 0.000314

3. Originally Posted by BobP
|p - p*| / |p| <= 10^(-4), so |p - p*| <= |p|.10^(-4).
(a) p = pi.
|pi - p*| <= pi.*10^(-4) = 3.14159 * 0.0001 = 0.000314
so pi - 0.000314 <= p* <= pi + 0.000314

can you explain more

you sub pi instead of p

$\displaystyle \mid \pi - p^* \mid \leq \pi(10^{-4})=3.14159(\frac{1}{10000})$

I can't understand what you did in the red line

4. The previous line is saying that the maximum difference between the exact and approximate values is to be about 0.000314. In that case the approximate value has to lie within the approximate range 3.141278 to 3.141907.