A1355 of 55
0 XP
  1. Hook
  2. Problems

A13 · Final exam

Final exam: numerical methods

Twelve problems from the whole course: floating point and error, conditioning and stability, root finding, interpolation, differentiation and quadrature, direct and iterative linear solvers, eigenvalues, nonlinear systems, fitting and optimization, ODE integration with step control and stiffness, the FFT, Monte Carlo and sparse matrices. Give yourself three hours, work without the lessons open, and write out your reasoning before checking each answer. "Another set" deals a different exam.

Check

Formats.

(a)

Above what integer does an 11-bit format first skip integers?

(b)

What's the relative spacing of doubles at 9?

Check

Cancellation and conditioning.

(a)

The small root of x2−1 × 10⁷x+2?

(b)

κ of ln⁡x at 20?

Check

Iterations.

(a)

Error factor of x←2+1/x?

(b)

Order of a method with errors 0.1, 0.001, 1 × 10⁻⁹?

Check

Solve x3=3.

(a)

One Newton step from 1?

(b)

One secant step from 1 and 2?

Check

The points (0, 1), (1, 4), (2, 8).

(a)

Interpolating quadratic at 1.5?

(b)

M1 of the natural spline?

Check

Derivatives of x3, and noise.

(a)

Central difference at 1 with h = 0.2?

(b)

Differencing samples with 3 mV noise, 0.2 ms apart: noise in the derivative?

Write units the way you normally would: 1.5 V/s, 1500 mV/s and 0.0015 kV/s are the same answer.

Check

Quadrature.

(a)

Trapezoid with 3 intervals for ∫01x2dx?

(b)

Simpson's error bound on length 2, 80 intervals, |f(4)|≤ 9?

Check

Gauss rules.

(a)

2-point Gauss for ∫−11x6dx?

(b)

3-point Gauss for ∫−11e0.5xdx?

Check

Direct solvers.

(a)

One LU of a dense 600 × 600 matrix and 20 solves: operations?

(b)

Its storage?

Check

Iterative solvers.

(a)

ωopt for a 30 × 30 grid?

(b)

CG's convergence factor for κ = 100?

Check

Eigenvalues.

(a)

Power iteration's ratio for 7 and 3?

(b)

Rayleigh quotient of (4, 1) for (5, 1; 1, 5)?

Check

Nonlinear systems.

(a)

A diode's companion conductance at 0.58 V?

Write units the way you normally would: 1.5 mS, 1500 µS and 0.0015 S are the same answer.

(b)

det J of (x2+y2−4,ex+y−1) at (0.5, 2)?

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

16 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.