A1326 of 55
0 XP
  1. Hook
  2. Problems

A13 · Midterm exam

Midterm exam: numerical methods

Twelve problems from the first half of the course: floating point and rounding, conditioning and stability, root finding, interpolation and splines, numerical differentiation, quadrature, and Gaussian elimination. Give yourself two hours, work without the lessons open, and write out your reasoning before checking each answer. "Another set" deals a different exam.

Check

Floating point.

(a)

What's the spacing between doubles near 20?

(b)

What's the machine epsilon of a 24-bit format?

Check

Subtracting 1 from 1 + 1 × 10⁻⁵.

(a)

By what factor does the relative error grow?

(b)

About how many digits are lost?

Check

x2−2000000x+3=0.

(a)

What's the small root, computed without cancellation?

(b)

What's the large root, to three significant figures?

Check

Condition numbers.

(a)

What's κ of ln⁡x at x = 1.5?

(b)

How large is the biggest term of the series for e−8?

Check

Simple iterations.

(a)

How many bisection steps get within 1 × 10⁻⁵ of a root bracketed 2 wide?

(b)

By what factor does x←4+1/x shrink the error each step?

Check

Newton's method for 5 from 2.

(a)

What's x1?

(b)

Using en+1≈en22a, what's the predicted error of x2?

Check

Rates.

(a)

Newton's rate at a root of multiplicity 3?

(b)

A run's errors are 0.1, 0.001, 1 × 10⁻⁹. What's its order?

Check

The points (0, 1), (1, 2), (2, 5).

(a)

What's the interpolating quadratic at 1.5?

(b)

What's M1 for the natural spline through them?

Check

Nodes and tables.

(a)

What's Chebyshev node x1 for n = 5?

(b)

What's the worst linear-interpolation error of a 2048-entry sine table?

Check

Differences of x3 at 2 with h = 0.25.

(a)

Forward difference?

(b)

Central difference?

Check

Steps and noise.

(a)

About what's the best forward-difference step in a 24-bit format?

(b)

Samples with 2 mV of noise, 25 µs apart: how noisy is their difference quotient?

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

Check

Integration rules.

(a)

Trapezoid with 4 intervals for ∫01x2dx?

(b)

One-panel Simpson for ∫02x4dx?

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.