A1325 of 55
0 XP
  1. Hook
  2. Problems

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

∫01x2dx 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

∫01.5x4dx.

(a)

What does one-panel Simpson give?

(b)

What does 2-point Gauss give?

Check

Error bounds with |f′′|≤ 6 and |f(4)|≤ 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 ∫−11x4dx?

(b)

Through what degree is the 3-point rule exact?

Check

∫−11e1.5xdx.

(a)

What's the exact value?

(b)

What does 2-point Gauss give?

Check

Adaptive Simpson on one interval gives S1 = 0.9 and S2 = 0.95.

(a)

What's the corrected estimate?

(b)

With tolerance 0.001, below what |S2−S1| is the interval accepted?

Check

Romberg and singular integrands.

(a)

Romberg column 1 has error O(hp). What's p?

(b)

About what's the trapezoid error on ∫01xdx 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 κ=107, about how many correct digits does a stable solve give?

Check

Periodic signals.

(a)

What's 1N∑k=0N−1sin2⁡2πkN 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.

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.