A13 Numerical methods · Practice
Midterm exam
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 16 kinds solid
Check
Floating point.
(a)
What's the spacing between doubles near 20?
(b)
What's the machine epsilon of a 24-bit format?
Check
Subtracting 1 from 1 + 1 × 10⁻⁵.
(a)
By what factor does the relative error grow?
(b)
About how many digits are lost?
Check
.
(a)
What's the small root, computed without cancellation?
(b)
What's the large root, to three significant figures?
Check
Condition numbers.
(a)
What's κ of at x = 1.5?
(b)
How large is the biggest term of the series for ?
Check
Simple iterations.
(a)
How many bisection steps get within 1 × 10⁻⁵ of a root bracketed 2 wide?
(b)
By what factor does shrink the error each step?
Check
Newton's method for from 2.
(a)
What's ?
(b)
Using , what's the predicted error of ?
Check
Rates.
(a)
Newton's rate at a root of multiplicity 3?
(b)
A run's errors are 0.1, 0.001, 1 × 10⁻⁹. What's its order?
Check
The points (0, 1), (1, 2), (2, 5).
(a)
What's the interpolating quadratic at 1.5?
(b)
What's for the natural spline through them?
Check
Nodes and tables.
(a)
What's Chebyshev node for n = 5?
(b)
What's the worst linear-interpolation error of a 2048-entry sine table?
Check
Differences of at 2 with h = 0.25.
(a)
Forward difference?
(b)
Central difference?
Check
Steps and noise.
(a)
About what's the best forward-difference step in a 24-bit format?
(b)
Samples with 2 mV of noise, 25 µs apart: how noisy is their difference quotient?
Write units the way you normally would: 1.5 V/s, 1500 mV/s and 0.0015 kV/s are the same answer.
Check
Integration rules.
(a)
Trapezoid with 4 intervals for ?
(b)
One-panel Simpson for ?
Check
Gaussian quadrature.
(a)
3-point Gauss for ?
(b)
2-point Gauss for ?
Check
Adaptive and Romberg.
(a)
Simpson gives 2.1 on an interval and 2.05 on its halves. Corrected estimate?
(b)
Error order of Romberg column 3?
Check
Dense systems.
(a)
How long does LU of a 2500 × 2500 matrix take at 40 GFLOP/s?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
With , about how many digits can you trust?
Check
took 2 row swaps, and U's diagonal is 3, 2, 0.5.
(a)
What is ?
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