One common instance where subtractive cancellation occurs involves finding the roots of a parabola, ax 2 +
Question:
One common instance where subtractive cancellation occurs involves finding the roots of a parabola, ax2 + bx + c, with the quadratic formula:
For cases where b2 >> 4ac, the difference in the numerator can be very small and roundoff errors can occur. In such cases, an alternative formulation can be used to minimize subtractive cancellation:
Use 5-digit arithmetic with chopping to determine the roots of the following equation with both versions of the quadratic formula.
x2 − 5000.002x + 10
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Applied Numerical Methods With MATLAB For Engineers And Scientists
ISBN: 9781259027437
3rd Edition
Authors: Steven C. Chapra
Question Posted: