A13 · Problem set 12
Problem set 12: numerical methods across the course
These problems mix the whole course, including the FFT, Monte Carlo and sparse matrices from lessons 47 to 49. Several combine two ideas, the way a real computation does: an error estimate and a cost, a conditioning and a stability.
Check
Spacing and epsilon.
(a)
What's the spacing of doubles near 3000?
(b)
What's the best central-difference step in a 24-bit format?
Check
Cancellation and conditioning.
(a)
About how many digits does lose?
(b)
Least squares by the normal equations with : digits left?
Check
Root finding.
(a)
Bisection steps from a bracket 1 wide to within 1 × 10⁻⁶?
(b)
A linear iteration with rate 0.8: steps for 12 digits?
Check
Newton's method.
(a)
One step toward from 2?
(b)
Its rate at a root of multiplicity 5?
Check
Tables and nodes.
(a)
Worst linear-interpolation error of a 256-entry sine table?
(b)
Chebyshev node for n = 6?
Check
Quadrature.
(a)
One-panel Simpson for ?
(b)
2-point Gauss for ?
Check
Dense and sparse storage.
(a)
LU of a dense 3000 × 3000 matrix at 100 GFLOP/s?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
CSR storage with 9 nonzeros per row?
Check
Iterative solvers.
(a)
SOR sweeps at for a 64 × 64 grid, 6 digits?
(b)
CG steps for κ = 90000, 6 digits?
Check
The matrix (3, 1; 1, 2).
(a)
Its larger eigenvalue?
(b)
Its off-diagonal after one unshifted QR step?
Check
Steps and stiffness.
(a)
One Euler step on from 1 with h = 0.01?
(b)
Backward Euler's factor for a mode with τ = 0.5 µs at h = 100 µs?
Check
FFTs.
(a)
Speedup of a -point FFT over a direct DFT?
(b)
Power-of-two length to convolve 1500 samples with 600 taps?
Check
Monte Carlo.
(a)
Samples for a standard error of 0.001 with s = 0.3?
(b)
Standard error of a yield of 0.97 from 20000 trials?
Check
The constant term of changes by 0.001.
(a)
About how far does the root at 3 move?
Check
A Chebyshev low-pass filter has ripple factor ε = 0.5.
(a)
What is its passband ripple?
Check
The 2D model problem on a 200 × 200 grid is solved by CG to .
(a)
About how many steps does it take?
Have paper and a calculator ready. Work each problem out by hand, then enter the answer. Your first try on each one counts toward your score.
Practice
Keep practicing
15 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.