A13 · Problem set 5
Problem set 5: integration and direct solvers
These problems use lessons 17 to 23: the trapezoid and Simpson rules, Gaussian quadrature, adaptive and Romberg integration, and Gaussian elimination with its cost and accuracy.
Check
with 5 intervals.
(a)
What does the trapezoid rule give?
(b)
What's its error?
Check
Power samples 2 ms apart: 0, 20, 90, 20, 0 W.
(a)
What energy does the trapezoid rule give?
Write units the way you normally would: 1.5 J, 1500 mJ and 0.0015 kJ are the same answer.
(b)
What does Simpson's rule give?
Check
.
(a)
What does one-panel Simpson give?
(b)
What does 2-point Gauss give?
Check
Error bounds with 6 and 6 on an interval of length 1, 10 intervals.
(a)
What's the trapezoid rule's bound?
(b)
What's Simpson's bound?
Check
Gauss–Legendre rules.
(a)
What does 2-point Gauss give for ?
(b)
Through what degree is the 3-point rule exact?
Check
.
(a)
What's the exact value?
(b)
What does 2-point Gauss give?
Check
Adaptive Simpson on one interval gives = 0.9 and = 0.95.
(a)
What's the corrected estimate?
(b)
With tolerance 0.001, below what is the interval accepted?
Check
Romberg and singular integrands.
(a)
Romberg column 1 has error . What's p?
(b)
About what's the trapezoid error on with 16 intervals?
Check
A dense 1500 × 1500 system on a 50 GFLOP/s machine.
(a)
How many operations does LU take?
(b)
How long does it take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
One LU factorization reused for 50 right-hand sides, n = 800.
(a)
How many operations in all?
(b)
How many times more would refactoring for every right-hand side cost?
Check
Storage and accuracy.
(a)
How much memory does a dense 20000 × 20000 matrix of doubles need?
(b)
With , about how many correct digits does a stable solve give?
Check
Periodic signals.
(a)
What's for N = 8?
(b)
A sine of amplitude 10 V is sampled 8 times over one period. What RMS does the sum give?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
Cholesky factors .
(a)
What is ?
Check
Dense LU of a 2000 × 2000 matrix runs at 20 GFLOP/s.
(a)
About how long does it take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Simpson's rule's error goes as .
(a)
By what factor does the error shrink with 2 times as many intervals?
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.