Numerical analysis 1 round off errors

410 Views Asked by At

enter image description here Suppose a machine with the floating-point system $\beta = 10$, $t = 8$, $L = -50$, and $U = 50$ is used to calculate the roots of a quadratic equation $ax^2 + bx + c = 0$, where $a$, $b$, and $c$ are given real coefficients. For each of the following, state the numerical difficulties that arise when using the standard formula for computing the root. Explain how to overcome these difficulties when possible.

I dont need an answer for all of them, I tried reading the book - I dont understand the concept of $\beta $, $t$, $L$, and $U$, so if you could just explain that in relation to this question, that'd be great. Thank you!

enter image description here

1

There are 1 best solutions below

0
On

Essentially you have a number system which retains $t=8$ correct decimal places (decimal because $\beta=10$) in each operation, and can represent positive numbers as large as $10^U=10^{50}$ and as small as $10^L=10^{-50}$. So for example, in both the second and third situations, $b^2$ overflows when you attempt to compute it. As best I can tell the first situation is actually not a problem, though maybe I'm mistaken.

For reference, these days this sort of thing is mainly applicable in the case of IEEE double precision arithmetic, which uses $\beta=2,t=53,U=1024,L=-1023$.