A13 Numerical methods · Practice
Rounding error and cancellation
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
0 solved
0 in a row
0 of 9 kinds solid
Check
a = 1 + 1 × 10⁻⁶ and b = 1 each carry a relative rounding error u. By about what factor is the relative error of larger than u?
Check
Two numbers agree to a relative difference of 1 × 10⁻⁶. About how many decimal digits does subtracting them cost?
Check
What's the small root of ? (Compute it without cancellation.)
Check
In a format with 53 significant bits, below about what x does round to exactly 1? (Use and the spacing just below 1.)
Check
A left-to-right double sum of 1000000 terms has = 1. What's the worst-case error bound ?
Check
Compute for x = 0.01 in double precision.
(a)
What is its true value?
(b)
About how many decimal digits does the direct subtraction lose?
Check
Error amplification of (1 + 0.01) − 1?
Check
Small root of ?
Check
Digits lost subtracting numbers 1 × 10⁻⁵ apart (relatively)?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to the lesson · Practice every topic in A13