I don't really know how to title this question
You are provided the quadratic equation $ax^2 + x -1 = 0$ with a root $x$, with formula $x= \frac{-1+\sqrt{1+4a}}{2a}$ for each $a = 2^{-p}$,Where $(p=1,2,...,n)$ Let's define the root $x_{p}$ by the formula where $$\lim_{p\to\infty} x_{p}=1$$ (i) Assume you are using a computer that uses IEEE double precision arithmetic with rounding, find $x_{50}$
I'm not sure where to start with this problem, I've begun with placing $a=2^{-n}$ inside our formula for x.
So, $x= \frac{-1+\sqrt{1+4*2^{-p}}}{2*2^{-p}}$
I don't know where the limit comes into this but if I wanted to find $x_{50}$ would i plug in $p=50$
Any guidance on this problem would be greatly appreciated..
Where the limit comes in? That quadratic has two roots. One of them is close to $1$. The other is close to $-2^p$. Saying that the limit is $1$ is saying that we take the former, with the positive square root.
And then, yes, you plug in $p=50$. I'm pretty sure this exercise is about showing the impact of a bad subtraction - your answer will be something that isn't close to $1$.
I tested this in an Excel spreadsheet I happened to have open. Result: Exactly $1$. Still $1$ up to $p=53$, then becomes $0$ at $p=54$. Don't take this as gospel, though - I wouldn't trust Excel to implement the IEEE standard exactly.