A1354 of 55
0 XP
  1. Hook
  2. Problems

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 (1+0.0001)−1 lose?

(b)

Least squares by the normal equations with κ(A)=105: 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 6 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 x3 for n = 6?

Check

Quadrature.

(a)

One-panel Simpson for ∫02x4dx?

(b)

2-point Gauss for ∫−11e1.5xdx?

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 ωopt 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 y˙=−5y 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 210-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?

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.