A13 Numerical methods · Practice
Every topic, mixed
Problems dealt one at a time, with new numbers every time. The kinds you miss come back more often, and you can keep going as long as you like.
Topics: all 55
Check
What's the spacing between neighboring doubles near x = 1000000?
Check
A format has 24 significant bits. What's its machine epsilon, the spacing just above 1?
Check
About how many decimal digits does a 24-bit significand hold?
Check
Above what integer does a 24-bit format first skip integers?
Check
A float32 total adds 0.01 s at each tick. From what value does an addition stop changing it?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A format has an 11-bit significand.
(a)
What is the spacing between neighboring values near 5000?
(b)
What is that spacing relative to x?
Check
Double spacing near 3?
Check
Machine epsilon for 24 significant bits?
Check
First integer skipped above?
Check
a = 1 + 1 × 10⁻⁶ and b = 1 each carry a relative rounding error u. By about what factor is the relative error of larger than u?
Check
Two numbers agree to a relative difference of 1 × 10⁻⁶. About how many decimal digits does subtracting them cost?
Check
What's the small root of ? (Compute it without cancellation.)
Check
In a format with 53 significant bits, below about what x does round to exactly 1? (Use and the spacing just below 1.)
Check
A left-to-right double sum of 1000000 terms has = 1. What's the worst-case error bound ?
Check
Compute for x = 0.01 in double precision.
(a)
What is its true value?
(b)
About how many decimal digits does the direct subtraction lose?
Check
Error amplification of (1 + 0.01) − 1?
Check
Small root of ?
Check
Digits lost subtracting numbers 1 × 10⁻⁵ apart (relatively)?
Check
What's the condition number of computing at x = 1.1?
Check
What's the condition number of computing at x = 20?
Check
A linear system has . About how many correct decimal digits can a backward-stable solver give in double?
Check
What's the condition number of computing when x is 1.1 times a?
Check
How large is the largest term of the series for , ?
Check
Evaluate near its pole at .
(a)
What is its relative condition number at x = 1.55?
(b)
About how many digits does that cost?
Check
κ of at 2?
Check
Digits left with ?
Check
κ of at 10?
Check
A root is bracketed in an interval 2 wide. How many bisection steps guarantee the midpoint is within 0.001 of it?
Check
After 10 bisection steps on a bracket 4 wide, what's the worst-case error of the midpoint?
Check
The iteration converges to the positive root of . By what factor does each step shrink the error?
Check
A linearly convergent iteration has rate ρ = 0.1. About how many steps does it take to gain 6 decimal digits?
Check
A 5 V source drives a diode ( A, = 25.85 mV) through 470 Ω. What's after one fixed-point step from 0.7 V?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
Kepler's equation is solved by from .
(a)
What is ?
(b)
Using the bound , at most how many steps gain 6 digits?
Check
Bisection steps, bracket 3, tolerance 0.0001?
Check
Steps to gain 8 digits at rate 0.3?
Check
Error factor for ?
Check
Doubles near x = 5000.
(a)
What's the spacing between neighbors there?
(b)
What's that spacing relative to x?
Check
A format has 16 significant bits.
(a)
What's its machine epsilon?
(b)
Above what integer does it first skip integers?
Check
A float32 running total adds 0.03 each step.
(a)
From what total does an addition stop changing it?
(b)
And for a double running total?
Check
Subtracting b = 1 from a = 1 + 0.0001.
(a)
By about what factor does the relative error grow?
(b)
About how many decimal digits does that cost?
Check
.
(a)
What's the small root?
(b)
What's the large root?
Check
Condition numbers.
(a)
What's κ for at x = 1 + 0.0001?
(b)
What's κ for at x = 10?
Check
Stability and conditioning.
(a)
A system has . About how many digits can a stable solver deliver?
(b)
The series for has terms up to what size?
Check
Bisection on a bracket 1 wide.
(a)
How many steps guarantee an error below 0.0001?
(b)
What's the guaranteed error after 20 steps?
Check
The iteration .
(a)
What does it converge to?
(b)
By what factor does each step shrink the error?
Check
A linear iteration with rate 0.2.
(a)
About how many steps for 9 digits?
(b)
If the last step changed x by 1 unit, about how far is x from the answer, in those units?
Check
A 5 V source drives a diode ( A, = 25.85 mV) through 1000 Ω.
(a)
What's after one step from 0.7 V of ?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
(b)
What's near there, , with ≈ 0.7 V?
Check
at x = 5 × 10⁸.
(a)
What's its true value?
(b)
What does double precision give when it's computed as written?
Check
A binary format has 24 significant bits.
(a)
What is its unit roundoff?
(b)
About how many decimal digits does it carry?
Check
Two positive numbers of similar size, each with a tiny relative error, differ by a relative amount 1 × 10⁻⁵. They are subtracted.
(a)
By about what factor does the subtraction amplify their relative errors?
Check
Bisection starts on a bracket 1 wide.
(a)
How many steps shrink the bracket below 1 × 10⁻⁶?
Check
One Newton step for from = 1: what's ?
Check
One Newton step for from = 1: what's ?
Check
Near a simple root, Newton's error obeys with C = 2. If = 0.01, what's ?
Check
Newton's method approaches a root of multiplicity 4. By what factor does each step shrink the error?
Check
One step of toward from = 0.1: what's ?
Check
For , one secant step from and : what's ?
Check
Find the cube root of 3 as the root of .
(a)
What does one secant step from and give?
(b)
What does one Newton step from 2 give?
Check
Newton step for from 2?
Check
Newton's rate at a root of multiplicity 4?
Check
for C = 1.5, = 0.02?
Check
A method's successive errors are 0.1, 0.03162 and 0.005623. What's its order?
Check
A method of order 2 needs 2 function evaluations per step. What's its efficiency index?
Check
Newton's method starts with error 0.1 (take C = 1). How many steps until the error is below ?
Check
Apply Aitken's Δ² formula to 0.6967, 0.767, 0.72.
Check
A safeguarded solver falls back to bisection every step on a nasty function. At worst, how many steps does it need to get within 1 × 10⁻⁶ of a root bracketed 1 wide?
Check
A method of order 1.618 starts with error 0.1 (take C = 1).
(a)
How many steps until the error is below ?
Check
Order from errors 0.1, 0.0241, 0.00241?
Check
Efficiency index, order 2, 2 evaluations?
Check
Newton steps from error 0.2 to ?
Check
Evaluate at x = 2 with Horner's rule.
Check
What is for at x = −1.5, from the second Horner pass?
Check
The constant term of changes by 0.001. About how far does the root at 2 move?
Check
The monic cubic with roots −1, −3 and −2 has a companion matrix. What is that matrix's trace?
Check
has its constant term changed by 0.0001. About how far do its roots move from 1?
Check
Newton's method approaches a root of multiplicity 5.
(a)
By what factor does each step shrink the error?
(b)
What multiple of the step restores quadratic convergence?
Check
Horner: at 1.5?
Check
Shift of an m = 2 root for δ = 1 × 10⁻¹⁰?
Check
Companion matrix trace for roots 1, 2, 0.5?
Check
What does np.spacing return for x = 50 in a format with 24 significant bits?
Check
What is the small root of , computed stably?
Check
Spacing near 8 with 24 bits?
Check
Stable small root of ?
Check
Newton's method for uses , starting at 1.
(a)
What is ?
(b)
What is ?
Check
Find without division using from 0.2.
(a)
What is ?
(b)
The relative error squares each step. What is it after the first step?
Check
Solve with one secant step from and , on .
(a)
What is ?
Check
Newton's method approaches a root of multiplicity 4.
(a)
By what factor does each step shrink the error?
(b)
How many steps reduce the error by ?
Check
A method's successive errors are 0.1, 0.01 and 5 × 10⁻⁵.
(a)
What is its estimated order?
Check
Newton costs one f and one f′ per step; the secant method costs one f. A derivative costs 2 times as much as f.
(a)
What is Newton's efficiency index, order to the power 1/(cost per step)?
(b)
And the secant method's?
Check
, evaluated by Horner's rule at x = 2.
(a)
What is p(x)?
(b)
Where does one Newton step from 2 land?
Check
The constant term of is changed by 0.005.
(a)
About how far does the root at 4 move?
(b)
And the root at 2?
Check
A monic cubic has roots 1, 3 and 5, and its companion matrix has first row .
(a)
What is , the trace?
(b)
What is the companion matrix's determinant?
Check
Divide by with Horner's rule.
(a)
What is the quotient's coefficient of x?
(b)
And its constant term?
Check
Solve without cancellation.
(a)
What is the small root?
Check
Doubles have 53 significant bits.
(a)
What is the spacing above x = 1000?
Check
You add 100000 positive numbers of similar size in double precision.
(a)
What relative error bounds the naive sum, at worst?
(b)
What size is typical, if the roundings behave like random signs?
Check
Near a root, Newton's error obeys , starting at 0.01.
(a)
What is ?
(b)
What is ?
Check
A safeguarded solver falls back to bisection on a bracket 1 wide.
(a)
At worst, how many steps bring the bracket below 1 × 10⁻⁶?
Check
A table gives 12.49 kΩ at 20 °C, and the value changes by −1.8 kΩ over the next 10 °C. By linear interpolation, what's the resistance a fraction 0.7 of the way across that step?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
Check
The quadratic through (0, 1), (1, 3), (2, 4): what's its value at x = 0.5?
Check
For the points (0, 1), (1, 3), (3, 9), what's the divided difference ?
Check
What's Chebyshev node for n = 8 (n + 1 nodes on [−1, 1])?
Check
A sine table has 256 entries per cycle, read with linear interpolation. What's the worst-case error, for amplitude 1?
Check
The quadratic through nodes 0, 1, 2 uses the Lagrange basis polynomials.
(a)
What is at x = 1.5?
(b)
And ?
Check
Worst linear-interpolation error, 256-entry sine table?
Check
Chebyshev node , n = 5?
Check
for (0, 4), (1, 1), (3, 5)?
Check
A natural spline passes through (0, 1), (1, 1.5), (2, 4). What's its second derivative at x = 1?
Check
For the same kind of spline through (0, 0), (1, 1), (2, 4), what's S(0.5)?
Check
A clamped spline's error goes as . By what factor does it shrink when the table gets 3 times as many intervals?
Check
How many polynomial coefficients does a cubic spline through 11 points have?
Check
About how many arithmetic operations does a tridiagonal solve take for 5000 unknowns (about 8 per unknown)?
Check
A natural spline passes through (0, 0), (1, 1), (2, 3), (3, 0), with h = 1.
(a)
What is , its second derivative at x = 1?
(b)
What is ?
Check
for the natural spline through (0, 2), (1, 0), (2, 6)?
Check
Error reduction for 5 times as many intervals, ?
Check
Coefficients in a cubic spline through 23 points?
Check
Chebyshev polynomials at x = 0.8.
(a)
What is ?
(b)
What is ?
Check
What is the smallest possible worst error on [−1, 1] when is replaced by a polynomial of lower degree?
Check
A Chebyshev filter has ripple factor ε = 0.5. What is its passband ripple?
Check
A fourth-order Chebyshev low-pass with ε = 0.5: how much does it attenuate at 1.5 times its cutoff?
Check
A function's Chebyshev coefficients fall by a factor 10 from each term to the next, starting near 1. How many terms come before one falls below ?
Check
Chebyshev points on [0, 4] are . Where is the one with θ = 60°?
Check
?
Check
Best worst error for lowering ?
Check
Ripple for ε = 0.35?
Check
What does the forward difference give for the derivative of at x = 2 with h = 0.1?
Check
And the central difference for at x = 2 with h = 0.1?
Check
In a format with 53 significant bits, about what step gives the most accurate forward difference (take )?
Check
Take central differences of at x = 1 with h = 0.1 and h = 0.05. What's Richardson's correction, , which is added to D(0.05)? (Carry at least 8 digits in D.)
Check
Samples with 0.5 mV of noise, 1 µs apart, are differenced. About how much noise does the derivative estimate carry?
Write units the way you normally would: 1.5 V/s, 1500 mV/s and 0.0015 kV/s are the same answer.
Check
A position is read every 1 ms with 1 µm of independent noise.
(a)
How noisy is the acceleration from the second difference?
Write units the way you normally would: 1.5 m/s^2, 1500 mm/s^2 and 0.0015 km/s^2 are the same answer.
(b)
How noisy is the velocity from the central difference ?
Check
Forward difference of at 2, h = 0.5?
Check
Best central-difference step for 24 bits?
Check
Derivative noise, 1 mV noise, 2 µs spacing?
Write units the way you normally would: 1.5 V/s, 1500 mV/s and 0.0015 kV/s are the same answer.
Check
What is the part of ?
Check
Feeding with = 1 into , what is the part of the result?
Check
Write a class Dual(a, b) with +, -, *, / (each also with a plain number on either side), and functions dsin, dexp that act on duals. Then set val, der to the value and derivative of at x0 = 1, by evaluating f(Dual(x0, 1)).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Solve for the diode voltage with Newton's method, getting by evaluating on a dual number instead of by hand ( A, = 0.02585 V, Vs = 5 V, R = 220 Ω). Start from and limit each step to . Set v to the result and I to the current.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
A function maps 100 inputs to 2 output(s). How many forward-mode passes does its full Jacobian need?
Check
Run reverse mode on at = 1, = 3, with intermediates and .
(a)
What is , collecting the adjoints that flow into from and from ?
(b)
What is ?
Check
What is the part of ?
Check
Feeding into with = 0.8, what is the part?
Check
Newton's method for from = 2.
(a)
What's ?
(b)
What's ?
Check
Solve .
(a)
One Newton step from 1: what's ?
(b)
Instead, one secant step from and : what's ?
Check
Rates of convergence.
(a)
Newton approaches a root of multiplicity 2. By what factor does each step shrink the error?
(b)
At a simple root with and = 0.001, what's ?
Check
A run's errors are 0.1, 0.03162, 0.005623.
(a)
What's the order?
(b)
Assuming the same pattern, what's the next error?
Check
Efficiency.
(a)
A method of order 1.618 costs 1 evaluations per step. What's its efficiency index?
(b)
What's Newton's, with f and f′ each costing one evaluation?
Check
The points (0, 1), (1, 2), (2, 6).
(a)
What's the interpolating quadratic at 1.5?
(b)
What's the divided difference ?
Check
Nodes and tables.
(a)
What's Chebyshev node for n = 6?
(b)
What's the worst linear-interpolation error of a 512-entry sine table?
Check
The natural spline through (0, 0), (1, 3), (2, 4).
(a)
What's ?
(b)
What's S(0.5)?
Check
Spline bookkeeping.
(a)
How many coefficients does a cubic spline through 9 points have?
(b)
Its error is . By what factor does it shrink with 2 times as many intervals?
Check
Differences of at x = 1 with h = 0.1.
(a)
What does the forward difference give?
(b)
What does the central difference give?
Check
Best steps in a 24-bit format.
(a)
For a forward difference, : what's h?
(b)
For a central difference, : what's h?
Check
Noise and extrapolation.
(a)
Samples with 1 mV of noise, 5 µs apart, are differenced. How noisy is 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.
(b)
For at x = 1.5, what's Richardson's correction for central differences?
Check
Chebyshev polynomials satisfy .
(a)
What is ?
Check
Central differences give 2.72 with step h and a value 0.003 smaller with step h/2.
(a)
What is the Richardson-extrapolated derivative?
Check
Linear interpolation on a table with spacing 0.1, for a function with 1.
(a)
What is the worst-case error?
Check
Evaluate on the dual number .
(a)
What is the real part?
(b)
What is the part?
Check
What does the trapezoid rule with 4 intervals give for ?
Check
What does Simpson's rule with one panel (two intervals) give for ?
Check
Power samples 10 ms apart are 0, 30, 100, 30, 0 W. 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.
Check
On an interval of length 1 with 10 trapezoids, and 5, what's the worst-case error?
Check
By what factor does Simpson's error shrink when you use 3 times as many intervals?
Check
Estimate the errors of with 8 intervals, from the end-derivative formulas.
(a)
What is the trapezoid rule's error, ?
(b)
And Simpson's, ?
Check
Trapezoid with 5 intervals for ?
Check
One-panel Simpson for ?
Check
Trapezoid error bound, length 3, 20 intervals, 8?
Check
What does 2-point Gauss quadrature give for ?
Check
What does the 3-point Gauss rule give for ?
Check
Through what polynomial degree is the 6-point Gauss–Legendre rule exact?
Check
What does the 2-point Gauss rule give for ?
Check
Where does the positive 2-point node land on the interval [0, 2]?
Check
The 3-point Gauss–Legendre rule has nodes 0 and , with weights and .
(a)
What does it give for ?
(b)
What is the exact value?
Check
2-point Gauss for ?
Check
Degree of exactness, 12-point Gauss?
Check
3-point Gauss for ?
Check
Simpson's rule gives 1.25 on an interval and 1.2 from its two halves. What's the corrected estimate?
Check
An adaptive Simpson step has tolerance 0.0001. Below what difference does it accept the interval?
Check
Romberg's column j = 2 has error . What's p?
Check
Using the asymptotic error , about what's the trapezoid rule's error on with 100 intervals?
Check
After the substitution , what's ?
Check
Trapezoid values with 1, 2 and 4 intervals are 1.859, 1.754 and 1.875.
(a)
What is the Romberg entry from the last two?
(b)
What is the next column's entry?
Check
Corrected Simpson estimate from 0.75 and 0.71?
Check
Error order of Romberg column 3?
Check
Trapezoid error for with 100 intervals?
Check
What is ?
Check
About how much does contribute, for L = 3?
Check
What tail does truncating at L = 100 leave out?
Check
The substitution maps to an integral over [0, 1]. What is its value?
Check
About how large is lobe k = 5 of , the integral from to ?
Check
A rule's error on goes as .
(a)
By what factor does halving h shrink the error?
(b)
By what factor must the number of points grow to cut the error 1000-fold?
Check
?
Check
Tail of beyond 50?
Check
Size of lobe 12 of ?
Check
What is the smallest Gauss–Legendre rule that integrates every polynomial of degree 8 exactly?
Check
A rule's error falls from 0.0077 to 3 × 10⁻⁶ with one more point. How many decimal digits did that point gain?
Check
Gauss points needed for degree 11?
Check
Digits gained from 0.001 to 4 × 10⁻⁶?
Check
Integrate from 0 to 1 with 2 equal intervals.
(a)
What does the trapezoid rule give?
(b)
By how much does it exceed the exact value?
Check
Integrate from 0 to 1 with 4 intervals.
(a)
Estimate the trapezoid rule's error from .
(b)
And Simpson's, from ?
Check
Integrate from 0 to 2.
(a)
What does Simpson's rule with one panel give?
(b)
What is the exact value? (Compare: Simpson's rule is exact for cubics.)
Check
Apply the 2-point Gauss rule (nodes , weights 1) to .
(a)
What does it give?
(b)
What is its error (exact minus rule)?
Check
A polynomial of degree 12 must be integrated exactly.
(a)
How many Gauss–Legendre points are needed?
Check
Trapezoid values with 1, 2 and 4 intervals are 2, 1.8 and 2.64.
(a)
What is the extrapolated value from the last two?
(b)
What is the next Romberg entry?
Check
Simpson's rule gives 0.6667 on an interval and 0.6602 from its two halves.
(a)
What is the extrapolated value?
(b)
About how large is the error of ?
Check
has an integrable singularity.
(a)
What is ?
(b)
With , the factor becomes . What k makes the exponent 0?
Check
Truncate at L = 2.5.
(a)
About how large is the missing tail?
Check
Map with .
(a)
What is the integral?
Check
Lobe k of runs from to .
(a)
About how large is lobe 9?
(b)
Stopping after lobe k − 1, the error of a partial sum is about half the next lobe. About how large?
Check
The trapezoid rule with 100 intervals on an interval of length 2, with 4.
(a)
What bound does the error formula give?
Check
An adaptive Simpson routine has tolerance 0.005 on [0, 1] and splits an interval in half.
(a)
What tolerance does each half get?
(b)
Below what on a half is it accepted?
Check
Chebyshev coefficients are computed from N = 12 samples by the midpoint rule in θ.
(a)
The computed also picks up a higher coefficient. What is the lowest such index?
Check
Integrate from 0 to 0.09 by subtracting the singularity.
(a)
What is the exact integral of the subtracted part, ?
Check
About how many arithmetic operations does LU factorization of a dense 2000 × 2000 matrix take?
Check
A computer runs dense linear algebra at 10 GFLOP/s. About how long does an LU factorization of a 3000 × 3000 matrix take?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
You factor a 500 × 500 matrix once and solve for 10 right-hand sides. About how many operations in all?
Check
How much memory does a dense 10000 × 10000 matrix of doubles need?
Check
A stable solver leaves a residual at rounding level, and . About how many digits of the solution can you trust?
Check
Factor without pivoting.
(a)
What is the multiplier ?
(b)
What is ?
Check
LU operations for n = 1000?
Check
LU time, n = 2000, 20 GFLOP/s?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Operations for one LU and 10 solves, n = 1000?
Check
Factor .
(a)
What is ?
(b)
What is ?
Check
About how long does a Cholesky factorization of a dense 1000 × 1000 matrix take at 10 GFLOP/s?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
needed 3 row swaps, and U has diagonal 2, 3, 0.5. What is ?
Check
Cholesky on : what is ?
Check
A matrix with κ = 1000 is factored in float32 () and refined.
(a)
About how accurate is the first solve?
(b)
About how accurate is it after 1 refinement steps, before float64's limit?
Check
About how many operations does the Thomas algorithm take on a tridiagonal system with 10000 unknowns?
Check
for ?
Check
det A from pivots 3, 2, 6 and 3 swaps?
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?
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
.
(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 at x = 1.5?
(b)
How large is the biggest term of the series for ?
Check
Simple iterations.
(a)
How many bisection steps get within 1 × 10⁻⁵ of a root bracketed 2 wide?
(b)
By what factor does shrink the error each step?
Check
Newton's method for from 2.
(a)
What's ?
(b)
Using , what's the predicted error of ?
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 for the natural spline through them?
Check
Nodes and tables.
(a)
What's Chebyshev node for n = 5?
(b)
What's the worst linear-interpolation error of a 2048-entry sine table?
Check
Differences of 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 ?
(b)
One-panel Simpson for ?
Check
Gaussian quadrature.
(a)
3-point Gauss for ?
(b)
2-point Gauss for ?
Check
Adaptive and Romberg.
(a)
Simpson gives 2.1 on an interval and 2.05 on its halves. Corrected estimate?
(b)
Error order of Romberg column 3?
Check
Dense systems.
(a)
How long does LU of a 2500 × 2500 matrix take at 40 GFLOP/s?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
(b)
With , about how many digits can you trust?
Check
took 2 row swaps, and U's diagonal is 3, 2, 0.5.
(a)
What is ?
Check
What's the optimal SOR factor for the model problem on a 50 × 50 grid?
Check
About how many Jacobi sweeps does the model problem on a 50 × 50 grid need to gain 6 digits?
Check
And how many SOR sweeps at ?
Check
For the model problem Jacobi has = 0.9. What's Gauss–Seidel's spectral radius?
Check
One Jacobi sweep on , from : what's the new ?
Check
Solve iteratively.
(a)
What is Jacobi's spectral radius?
(b)
What is Gauss–Seidel's?
Check
for N = 64?
Check
Jacobi sweeps, N = 30, 8 digits?
Check
Gauss–Seidel radius from = 0.8?
Check
A system has κ = 100. By what factor does steepest descent shrink its error per step, at worst?
Check
And CG's convergence factor for κ = 10000?
Check
Using , about how many CG steps does κ = 10000 need for ?
Check
For the model problem on a 100 × 100 grid, about how many CG steps for ? (Use .)
Check
For from , what's CG's first step length ?
Check
The model problem on a 100 × 100 grid.
(a)
About what is its condition number?
(b)
About how many CG steps reach , by ?
Check
Steepest-descent factor, κ = 100?
Check
CG factor, κ = 2500?
Check
CG steps, κ = 2500, ?
Check
Weighted Jacobi on the 1D model problem with ω = 0.67.
(a)
What does one sweep multiply the mode with θ = 0.5π by?
Check
In d = 2 dimensions, each coarser grid has as many points. How many fine-grid sweeps' worth of smoothing does a V-cycle with one sweep per level cost?
Check
A V-cycle cuts the error by 0.2. How many cycles gain 6 digits?
Check
A preconditioner lowers the condition number from 10000 to 10. By about what factor does it cut CG's step count?
Check
A multigrid hierarchy halves an grid until it's 4 × 4. With N = 1024, how many levels are there, counting both ends?
Check
Damping factor for ω = 0.6, θ = 0.75π?
Check
CG step reduction from κ = 400 to 4?
Check
A matrix's two largest eigenvalues are 10 and 2. By what factor does power iteration shrink the eigenvector error each step?
Check
With = 0.9, about how many power iterations give the eigenvector to 6 digits?
Check
What's the Rayleigh quotient of v = (2, 3) for ?
Check
A matrix has eigenvalues 1, 3 and 6. Inverse iteration uses the shift σ = 2.8. What's its convergence ratio per step?
Check
One power step: what's the first component of Av for and v = (3, 5)?
Check
A two-state chain leaves state 1 with probability 0.1 and state 2 with probability 0.2 each step.
(a)
What fraction of the time is it in state 1, in the long run?
(b)
By what factor does power iteration's error shrink each step?
Check
Power-iteration ratio for 8 and 7?
Check
Iterations for 8 digits at ratio 0.3?
Check
Rayleigh quotient of (1, 4) for ?
Check
One unshifted QR step on : what's the new off-diagonal entry?
Check
What's the larger eigenvalue of , the one QR converges to in the top corner?
Check
A matrix's eigenvalues include 4 and the next smaller, 1. By what factor does unshifted QR shrink the subdiagonal entry between them each step?
Check
About how long do all the eigenvalues of a dense 2000 × 2000 matrix take at 20 GFLOP/s (about operations)?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A series RLC circuit has R = 10 Ω, L = 1 mH, C = 0.1 µF. What's the real part of its poles, the eigenvalues of its state matrix?
Check
Unshifted QR runs on a matrix whose two largest eigenvalues are 5 and 4.
(a)
By what factor has the off-diagonal entry between them shrunk after 10 steps?
(b)
How many steps until it's below of its start?
Check
New off-diagonal after one QR step on (4, 1, 3)?
Check
Larger eigenvalue of (3, 2; 2, 4)?
Check
Time for all eigenvalues, n = 800, 50 GFLOP/s?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
.
(a)
What is ?
(b)
What is ? (Use .)
Check
A matrix's singular values halve from each to the next, starting at = 10. What is the 2-norm error of its best rank-3 approximation?
Check
What fraction of the storage of a 1000 × 500 matrix does its rank-100 approximation need?
Check
A 2 × 2 antenna link has singular values 2 and 0.5, with power 100 per stream relative to the noise. What is its capacity per hertz?
Check
A matrix has . Solving least squares through , about how many digits can be lost?
Check
Rank-4 error, singular values halving from 5?
Check
Digits at risk through with κ = ?
Check
One Jacobi sweep on , from zero.
(a)
What is the new ?
(b)
What would Gauss–Seidel give for , using the new ?
Check
The 2D model problem on a 50 × 50 grid has .
(a)
What is Gauss–Seidel's spectral radius?
(b)
What is the optimal SOR factor?
Check
A symmetric positive definite system has κ = 400.
(a)
What is CG's convergence factor per step, in the standard bound?
(b)
About how many steps for ?
Check
A symmetric matrix has only 5 distinct eigenvalues.
(a)
In exact arithmetic, at most how many CG steps solve it exactly?
Check
Weighted Jacobi with ω = 0.67 on the 1D model problem.
(a)
What factor multiplies the roughest mode, θ = π?
(b)
And the mode θ = π/2?
Check
A V-cycle in d = 2 dimensions with one smoothing sweep per level cuts the error by 0.1.
(a)
How many fine-grid sweeps' worth of smoothing does it cost?
(b)
How many cycles gain 10 digits?
Check
A matrix's two largest eigenvalues are 10 and 9.
(a)
By what factor does power iteration's error shrink per step?
(b)
How many steps reduce the error by ?
Check
Inverse iteration uses a shift σ. The eigenvalue nearest σ is 0.1 from it, and the next nearest is 1 from it.
(a)
By what factor does the error shrink per step?
(b)
How many steps gain 10 digits?
Check
The Rayleigh quotient of v = (2, −1) for .
(a)
What is it?
(b)
What is the largest eigenvalue, which the quotient approaches as v nears (1, 1)?
Check
The symmetric matrix .
(a)
What is its larger eigenvalue?
(b)
By what factor does unshifted QR shrink the off-diagonal entry per step?
Check
A series RLC circuit has R = 5 Ω, L = 1 mH, C = 10 µF.
(a)
What is the real part of its (complex) poles, in s⁻¹?
Check
.
(a)
What is its largest singular value?
(b)
And its smallest? (.)
Check
A matrix's singular values are .
(a)
What is the 2-norm error of its best rank-3 approximation?
Check
A 100 × 50 matrix is stored as its rank-20 SVD.
(a)
How many numbers does that take?
Check
Least squares with is solved two ways in double precision.
(a)
Through the normal equations, about how many digits survive?
(b)
Through QR or the SVD, about how many?
Check
What's the companion conductance of a diode ( A, = 25.85 mV) linearized at 0.65 V?
Write units the way you normally would: 1.5 mS, 1500 µS and 0.0015 S are the same answer.
Check
And the companion current source at 0.65 V?
Write units the way you normally would: 1.5 mA, 1500 µA and 0.0015 A are the same answer.
Check
For , what's the Jacobian's determinant at (1, 1)?
Check
Forming a Jacobian of n = 1000 equations by forward differences: how many evaluations of F does it take, counting F at the current point?
Check
Newton on from (1, 0): what's ?
Check
Solve by Newton's method from .
(a)
What is the new x? (The first equation involves x alone.)
(b)
What is the new y? The second row of is .
Check
at 0.6 V?
Write units the way you normally would: 1.5 mS, 1500 µS and 0.0015 S are the same answer.
Check
Jacobian determinant at (0.5, 2)?
Check
F evaluations for a forward-difference Jacobian, n = 100?
Check
About how many Jacobi sweeps reduce the error of the 1D model problem with N = 50 unknowns by ?
Check
A float32 solve of a system with κ = 100 is refined 1 times in float64. About how small is the error, before reaching float64's floor?
Check
Jacobi sweeps for N = 10, 4 digits?
Check
Error after 2 refinements, κ = 1000?
Check
The model problem on a 40 × 40 grid, to 6 digits.
(a)
How many Gauss–Seidel sweeps?
(b)
How many SOR sweeps at ?
Check
, , from (0, 0).
(a)
After one Jacobi sweep, what's ?
(b)
After one Gauss–Seidel sweep, what's ?
Check
SOR on a 50 × 50 grid.
(a)
What's ?
(b)
What's the spectral radius there?
Check
A system with κ = 2500.
(a)
Steepest descent's factor per step?
(b)
About how many CG steps for ?
Check
CG on from zero.
(a)
What's ?
(b)
Where does CG end up after two steps: what's of the solution?
Check
A matrix's two largest eigenvalues are 6 and 2.
(a)
What's power iteration's ratio?
(b)
About how many steps for 12 digits in the eigenvector?
Check
Eigenvalues 1, 2 and 5; inverse iteration with σ = 1.8. Then a Rayleigh quotient.
(a)
What's the inverse-iteration ratio?
(b)
Rayleigh quotient of (3, 1) for ?
Check
One unshifted QR step on .
(a)
What's the new (1, 1) entry?
(b)
What's the new off-diagonal?
Check
The symmetric matrix (2, 1; 1, 4).
(a)
What's its larger eigenvalue?
(b)
By what factor does unshifted QR shrink the off-diagonal per step?
Check
Poles and cost.
(a)
A series RLC with R = 20 Ω and L = 2 mH, underdamped: real part of its poles?
(b)
All eigenvalues of a dense 3000 × 3000 matrix at 200 GFLOP/s?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
A diode ( A, = 25.85 mV) linearized at 0.62 V.
(a)
What's ?
Write units the way you normally would: 1.5 mS, 1500 µS and 0.0015 S are the same answer.
(b)
What's ?
Check
Newton for , and Jacobian cost.
(a)
What's det J at (0.5, 1)?
(b)
How many F evaluations does a forward-difference Jacobian take for n = 2000, counting the current point?
Check
A multigrid V-cycle in 2 dimensions with one sweep per level.
(a)
How many fine-grid sweeps' worth of smoothing does it cost?
Check
A matrix's singular values fall geometrically: with r = 0.5.
(a)
What is the 2-norm error of the best rank-10 approximation?
Check
Newton's method on at (1, −1).
(a)
What is the Jacobian's determinant?
Check
Least squares by the normal equations with : about how many digits survive?
Check
What's the intercept of the least-squares line through (0, 1), (1, 3), (2, 9)?
Check
A line is fitted to 6 points at x = 0, 1, 2, ..., each y with noise σ = 0.1. What's the slope's standard error?
Check
For the model with A = 5, τ = 2, what's the Jacobian entry at t = 3?
Check
A fit of 3 parameters to 8 points leaves SSR = 0.035. What's the estimated noise variance σ²?
Check
Fit a line to (0, 1), (1, 3), (2, 5), (3, 7).
(a)
What is its slope?
(b)
What is its intercept?
Check
Digits left by normal equations, ?
Check
Slope standard error, 5 points, σ = 0.05?
Check
Intercept of the fit through (0, 0), (1, 2), (2, 8)?
Check
How many golden-section evaluations shrink a bracket of width 5 below 0.001?
Check
A quadratic's largest Hessian eigenvalue is 50. Above what fixed step size does gradient descent diverge?
Check
A quadratic's Hessian eigenvalues run from 1 to 10. What's the best fixed gradient-descent step?
Check
One Newton step toward the minimum of from 1: what's the new x?
Check
To about what relative accuracy can a minimum's location be found in a 24-bit format?
Check
Gradient descent with the best fixed step minimizes .
(a)
By what factor does the error shrink per step?
(b)
About how many steps gain 6 digits?
Check
Golden-section evaluations, width 2 to 0.0001?
Check
Gradient-descent stability limit for = 20?
Check
Best fixed step for eigenvalues 0.5 to 20?
Check
Fit a line to (0, 1), (1, 2), (2, 6).
(a)
What is the slope?
(b)
What is the intercept?
Check
A line is fitted to 11 points at x = 0, 1, …, 11 − 1, each with noise σ = 0.1.
(a)
What is the slope's standard error?
(b)
And the standard error of the fitted value at the middle point?
Check
A fit of 2 parameters to 20 points leaves a sum of squared residuals of 3.
(a)
What is the estimated noise variance?
Check
The model with A = 2, τ = 1.
(a)
What is the Jacobian entry at t = 2?
(b)
And ?
Check
Two measurements of the same voltage: 5.02 V ± 0.01 V, and a second that reads −0.04 V more, ± 0.04 V.
(a)
What is the weighted least-squares estimate?
(b)
What is its standard deviation?
Check
Least squares through the normal equations with .
(a)
About how many digits survive in double precision?
Check
Golden-section search shrinks a bracket by 0.618 per evaluation.
(a)
How many evaluations shrink a bracket of 1 below 1 × 10⁻⁶?
Check
A quadratic's Hessian has eigenvalues from 0.5 to 4.
(a)
Above what fixed step does gradient descent diverge?
(b)
With the best fixed step, what factor does the error shrink by per step?
Check
Minimize by Newton's method from 1.
(a)
What is the new x?
(b)
Where is the minimum?
Check
A parabola passes through , and .
(a)
Where is its minimum?
Check
A minimum is located by comparing function values in a 24-bit format.
(a)
To about what relative accuracy can its location be found?
Check
A polynomial of degree 3 is fitted to 20 points.
(a)
How many parameters does it have?
(b)
How many degrees of freedom remain for estimating noise?
Check
A Levenberg–Marquardt step with λ = 0.1 lowered the sum of squares.
(a)
What λ comes next, with the usual factor of 10?
Check
A decaying voltage reads 3.1 V at t = 0 and 1.9 V at t = 2 ms. Fit exactly through the two points.
(a)
What is τ?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
Rosenbrock's function at (1, 1).
(a)
What is ?
(b)
What is ?
Check
One Euler step on from y = 5 with h = 0.01: what's the new y?
Check
A method of order 2: by what factor does the global error shrink when the step is divided by 2?
Check
A circuit mode decays as with k = 1000 s⁻¹. Above what step does forward Euler become unstable on it?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
Euler's method on an oscillator with = 0.1: by what factor does the amplitude grow per period?
Check
A method's global error is about . What step reaches an error of 1 × 10⁻⁶?
Check
Heun's method solves , y(0) = 1, with h = 0.05.
(a)
By what factor does each step multiply y?
(b)
What is the error after 10 steps?
Check
Euler step on , y = 3, h = 0.02?
Check
Error reduction, order 2, step divided by 3?
Check
Euler's stability limit for decay rate 500 s⁻¹?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
An order-4 estimate gives err = 2 × 10⁻⁷ on a step of 1 µs, with tolerance 1 × 10⁻⁶. What's the next step size?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
Step doubling with an order-4 method gives 2.718 from one step and 2.717 from two half steps. What's the estimated error of the two-step answer?
Check
A solver has atol = 0.0001 and rtol = 0.001. What's its tolerance where y = 0.5?
Check
An RC with τ = 0.01 ms needs a step of at its edges (RK4, tolerance 1 × 10⁻⁶). How many steps would a fixed step that small take per 1 ms?
Check
For the same circuit, about how many adaptive steps per 1 ms half period, with the step growing as after each edge?
Check
An adaptive solver keeps each step's local error below 1 × 10⁻⁶ for 1000 steps.
(a)
What is the worst case for the accumulated error, if the local errors all add?
(b)
If instead the local errors behave like independent random values, about how big is the total?
Check
Next step from 2 µs, err 1 × 10⁻⁷, tol 1 × 10⁻⁶, order 4?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
Tolerance with atol 1 × 10⁻⁵, rtol 0.0001, y = 0.002?
Check
Error estimate from 0.3679 (one step) and 0.3681 (two halves), order 4?
Check
AB2 on with h = 0.1, from and the exact . What is ?
Check
A 1 µF capacitor is stepped with BDF2 at h = 0.1 µs. What conductance stands for it in the companion model?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
Above what step does AB2 become unstable on a mode decaying as with k = 1000 s⁻¹?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
BDF2 on a mode with = −10: how large are its amplification roots?
Check
A problem is integrated over 1000 steps at fourth order.
(a)
About how many evaluations of f does RK4 use?
(b)
About how many does AB4 use, if its three starting values come from RK4?
Check
BDF2 companion conductance, 2 µF, h = 0.5 µs?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
BDF2 root size for = −5?
Check
A circuit's fastest time constant is 10 ns. Below what step must forward Euler stay?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Backward Euler with step 50 µs on a mode with τ = 1 µs: by what factor is that mode multiplied each step?
Check
And the trapezoidal rule's factor for that mode?
Check
In a backward-Euler companion model, what conductance stands for a 10 µF capacitor with a 0.1 µs step?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
A circuit's time constants run from 1 × 10⁻⁶ s to 0.001 s. At least how many forward-Euler steps does a 1 s simulation need?
Check
A circuit's fastest time constant is 1 µs and its slowest 1 ms. You simulate 1 s.
(a)
At least how many steps does forward Euler need, from its stability limit?
(b)
How many does backward Euler need if accuracy asks for ?
Check
Forward-Euler step limit for τ = 1 ns?
Write units the way you normally would: 1.5 ns, 1500 ps and 0.0015 µs are the same answer.
Check
Backward-Euler factor, h = 20, τ = 2?
Check
Companion conductance, 4.7 µF, 0.5 µs?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
Shooting solves with and . What starting slope hits the target?
Check
Finite differences on with h = 0.1: what is the diagonal of the system ?
Check
Shooting on over [0, 1]: by what factor does a starting slope error grow by x = 1?
Check
A second-order finite-difference solution has error 0.004 at a given point.
(a)
What error do you expect with h divided by 2?
(b)
And the number of points grows by about what factor?
Check
Newton's method on the finite-difference form of . What is a diagonal entry of the Jacobian at a point where = 1, with h = 0.5?
Check
A fin with (T measured from the air temperature), m = 10 m⁻¹, length 0.02 m, base at T = 1 and an insulated tip. What is the tip temperature?
Check
Shooting slope for , ?
Check
Insulated fin tip temperature, m = 20, L = 0.01?
Check
A solver's error is 0.0015 at step h and 0.0015/3.9 at h/2. What order does that suggest?
Check
BDF2 steps a mode decaying at rate 1000 s⁻¹ with h = 0.01 s. By what factor does each step shrink that mode?
Check
Observed order from a ratio of 4.1?
Check
BDF2 damping per step, rate 500, h = 0.002?
Check
Least squares with .
(a)
About how many digits does QR keep?
(b)
And the normal equations?
Check
The least-squares line through (0, 1), (1, 2), (2, 10).
(a)
What's its slope?
(b)
What's its intercept?
Check
Fit statistics.
(a)
A line through 8 points at x = 0, 1, ... with noise σ = 0.2: slope standard error?
(b)
That fit leaves SSR = 2. What's the estimated σ²?
Check
The model with A = 3, τ = 1.5, at t = 5.
(a)
What's ?
(b)
What's ?
Check
Searching and stepping.
(a)
Golden-section evaluations to shrink a width-3 bracket below 0.001?
(b)
Gradient descent's stability limit when = 400?
Check
A quadratic with Hessian eigenvalues from 1 to 50.
(a)
What's the best fixed gradient-descent step?
(b)
What factor per step does it achieve?
Check
Minimize .
(a)
One Newton step from 1?
(b)
Where's the minimum?
Check
ODE steps.
(a)
One Euler step on from y = 1 with h = 0.02?
(b)
An order-4 method's step is divided by 3. By what factor does its global error shrink?
Check
An undamped oscillator with = 0.2.
(a)
Euler's amplitude growth per period?
(b)
Euler's growth per step?
Check
Step control.
(a)
Order-4 error 3 × 10⁻⁷ on a 4 µs step, tolerance 1 × 10⁻⁶: next step?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
(b)
With atol = 0.0001, rtol = 1 × 10⁻⁵, what's the tolerance at y = 2?
Check
Stiff mode with τ = 1 µs and step 20 µs.
(a)
Backward Euler's factor per step?
(b)
Trapezoidal rule's factor?
Check
Explicit limits and companion models.
(a)
Fastest time constant 1 × 10⁻⁸ s: at least how many forward-Euler steps for 0.001 s?
(b)
Backward-Euler companion conductance of 47 µF with a 10 µs step?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
AB2 integrates a mode decaying at 100 s⁻¹.
(a)
Above what step does it go unstable?
Write units the way you normally would: 1.5 s and 1500 ms are the same answer.
Check
BDF2 steps a 10 nF capacitor with h = 1 ns.
(a)
What is its companion conductance?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
Shooting on with and .
(a)
What starting slope is needed?
Check
How many complex multiplications does a radix-2 FFT of points take?
Check
How many times fewer multiplications does an FFT of points need than a direct DFT?
Check
To convolve 2000 samples with a 64-tap filter by FFT, what's the smallest power-of-two length that avoids wrap-around?
Check
What's the real part of the twiddle factor ?
Check
In an in-place 8-point FFT, where does input sample 3 end up (its 3-bit index reversed)?
Check
A record of 256 samples at 1000 Hz is analyzed with an FFT.
(a)
What is its bin spacing?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
After zero padding to 4N points, what is the spacing of the plotted points?
Check
FFT multiplications for points?
Check
FFT length to convolve 4000 and 150 samples?
Check
Bit-reversed position of sample 3 in an 8-point FFT?
Check
Samples of a Monte Carlo integrand have standard deviation 1.5. What's the standard error of the mean of 1000 of them (unit volume)?
Check
How many samples bring a Monte Carlo standard error to 0.001, if the integrand's standard deviation is 0.2?
Check
About how many trials does it take to see 100 occurrences of an event with probability 1 × 10⁻⁶?
Check
A simulation estimates a yield of 0.8 from 1000 trials. What's its standard error?
Check
A grid rule of order 2 in 3 dimensions has error in the total number of points N. What's q?
Check
Each sample has variance 0.242, and the two halves of an antithetic pair have covariance −0.2.
(a)
What is the variance of the pair's average?
(b)
By what factor does that beat two independent samples?
Check
Standard error, s = 0.5, N = 400?
Check
Samples for error 0.01 with s = 0.1?
Check
Yield standard error, 0.9 from 500 trials?
Check
A sparse matrix has 100000 rows and 5 nonzeros per row. About how much memory does CSR take (8-byte values, 4-byte indices)?
Check
How many operations does one sparse matrix-vector product take, with 100000 rows of 5 nonzeros?
Check
About how many operations does LU of a banded matrix take, with n = 10000 and bandwidth 10 (use )?
Check
The Laplacian on a 2D grid has n = 1000000 unknowns. About how many operations does sparse LU with nested-dissection ordering take ()?
Check
An arrow matrix of size 1000 has one hub node tied to all the others, which connect only to it. If the hub is eliminated first, about how many nonzeros does the remaining matrix have?
Check
A 2D grid of 100 × 100 unknowns is numbered row by row.
(a)
About how many operations does banded LU take, with b = N?
(b)
How many times more would dense LU take?
Check
CSR memory, 50000 rows, 4 per row?
Check
Banded LU operations, n = 20000, bandwidth 50?
Check
Fill from eliminating an arrow's hub first, n = 100?
Check
A radix-2 FFT has points.
(a)
How many butterflies (complex multiplications) does it take?
(b)
How many times fewer than a direct DFT's ?
Check
Convolve 1000 samples with a 100-tap filter by FFT.
(a)
What is the smallest power-of-two FFT length that avoids wraparound?
Check
A record of 512 samples at 8000 Hz.
(a)
What is the FFT's bin spacing?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
How long is the record?
Check
The twiddle factor , with N = 16 and k = 1.
(a)
What is its real part?
(b)
What is its imaginary part?
Check
A Monte Carlo integrand has standard deviation 0.5.
(a)
How many samples bring the standard error to 0.01?
(b)
How many for an error ten times smaller?
Check
A yield simulation passes a fraction 0.95 of 1000 trials.
(a)
What is the yield's standard error?
Check
You estimate a failure probability near 0.001 by simulation.
(a)
How many trials give a relative error of 0.1?
Check
Antithetic pairs: each sample has variance 0.242, and the halves of a pair have covariance −0.2.
(a)
What is the variance of the pair average?
Check
A grid rule of order 2 is used in 5 dimensions.
(a)
Its error goes as in the total number of points. What is q?
(b)
Monte Carlo's error goes as . The grid rule wins when exceeds ½; what is here?
Check
A sparse matrix has 1000000 rows with 5 nonzeros each, stored in CSR (8-byte values, 4-byte indices).
(a)
How much memory does it take?
(b)
How many operations does a matrix–vector product take?
Check
A 2D grid of 200 × 200 unknowns is numbered row by row.
(a)
What is the matrix's bandwidth?
(b)
About how many operations does banded LU take, ?
Check
An arrow matrix has a hub row and column connected to all 1000 − 1 other unknowns, which connect only to the hub.
(a)
If the hub is eliminated first, about how many new nonzeros (fill) appear?
(b)
And if it's eliminated last?
Check
A 101-tap filter is applied to 1000000 samples by overlap-add with FFT blocks of points.
(a)
How many new output samples does each block produce?
(b)
How many blocks does the whole signal take?
Check
Stratified sampling splits [0, 1] into strata; the integrand's standard deviation is 1 overall but 0.2 within each stratum.
(a)
By about what factor does that cut the number of samples needed?
Check
A smooth periodic signal is sampled N = 64 times per period. Its derivative is wanted at the samples.
(a)
Spectrally, differentiation multiplies harmonic 3 by . What is ω for that harmonic, per period of ?
Check
Step doubling with RK4 gives 0.3679 from one step and 0.3685 from two half steps. What's the estimated error of the two-step answer?
Check
For , y(0) = 0, what's the amplitude of the decaying term in the exact solution (its coefficient's size)?
Check
RK4 step-doubling error estimate from 0.7071 and 0.7074?
Check
Size of the coefficient for k = 10?
Check
Next step from h = 0.01, error 5 × 10⁻⁸, tolerance 1 × 10⁻⁸?
Check
A diode is linearized at 0.65 V for Newton's method.
(a)
What is its companion conductance ?
Write units the way you normally would: 1.5 mS, 1500 µS and 0.0015 S are the same answer.
(b)
What is the companion current source ?
Check
A source of 5 V drives a diode through 1000 Ω. Take one Newton step on the diode voltage from 0.7 V.
(a)
Where does it land?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A transient run uses backward Euler with h = 10 µs.
(a)
What conductance stands for a 2.2 µF capacitor?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
(b)
What conductance stands for a 1 mH inductor?
Check
The trapezoidal rule steps a 1 µF capacitor with h = 0.5 µs.
(a)
What is its companion conductance?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
A circuit's time constants are 1 ns and 1 ms. You simulate 10 ms.
(a)
At least how many forward Euler steps does stability demand?
(b)
How many backward Euler steps of ?
Check
A nodal matrix contains conductances from a 1 Ω resistor and a 1 × 10⁹ Ω resistor.
(a)
About how many digits might its solution lose, taking κ ≈ the ratio of conductances?
Check
A resistor ladder with 1000 nodes has a tridiagonal nodal matrix.
(a)
About how many operations does the Thomas algorithm need?
Check
A capacitor discharging through a resistor reads 4.5 V and, 5 ms later, 1.7 V.
(a)
What is the time constant?
Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.
Check
A thermistor table gives 10 kΩ at 25 °C and 10 − 1.94 kΩ at 30 °C.
(a)
What does linear interpolation give at 3 °C above 25 °C?
Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.
Check
A divider's ratio is with , each with an independent spread of 1%.
(a)
What is the relative spread of the ratio?
Check
A tone at 1100 Hz is sampled at 1000 Hz with no anti-aliasing filter.
(a)
At what frequency does it appear?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
RK4 simulates an LC tank with = 0.5.
(a)
By what factor does each step multiply the amplitude?
Check
Two tones 5 Hz apart near 1000 Hz are sampled at 48 kHz.
(a)
At least how many samples does an FFT need to put them in separate bins?
Check
Two diodes in a circuit give Newton a 2 × 2 Jacobian , with the diodes' conductances at node voltages 0.6 and 0.5 V.
(a)
What is its determinant?
Check
A transient runs 10 ms with a fixed step of 1 µs, solving a 1000-node sparse system each step.
(a)
How many time steps is that?
Check
What conductance stands for a 100 µF capacitor with a 20 µs backward-Euler step?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
A current of 10 mA flows into a node with 1000 Ω and 2000 Ω to ground. What's the node voltage?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
Companion conductance, 1 µF, 0.5 µs?
Write units the way you normally would: 1.5 S, 1500 mS and 0.0015 kS are the same answer.
Check
Node voltage: 20 mA into 470 Ω ∥ 1000 Ω?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
Diode companion conductance at 0.65 V?
Write units the way you normally would: 1.5 mS, 1500 µS and 0.0015 S are the same answer.
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 lose?
(b)
Least squares by the normal equations with : 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 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 for n = 6?
Check
Quadrature.
(a)
One-panel Simpson for ?
(b)
2-point Gauss for ?
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 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 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 -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?
Check
The constant term of changes by 0.001.
(a)
About how far does the root at 3 move?
Check
A Chebyshev low-pass filter has ripple factor ε = 0.5.
(a)
What is its passband ripple?
Check
The 2D model problem on a 200 × 200 grid is solved by CG to .
(a)
About how many steps does it take?
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 ?
(b)
κ of at 20?
Check
Iterations.
(a)
Error factor of ?
(b)
Order of a method with errors 0.1, 0.001, 1 × 10⁻⁹?
Check
Solve .
(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)
of the natural spline?
Check
Derivatives of , 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 ?
(b)
Simpson's error bound on length 2, 80 intervals, 9?
Check
Gauss rules.
(a)
2-point Gauss for ?
(b)
3-point Gauss for ?
Check
Direct solvers.
(a)
One LU of a dense 600 × 600 matrix and 20 solves: operations?
(b)
Its storage?
Check
Iterative solvers.
(a)
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 at (0.5, 2)?
Check
Fitting and optimization.
(a)
Slope standard error for 10 points at x = 0, 1, ... with σ = 0.1?
(b)
Best fixed gradient-descent step for Hessian eigenvalues 2 to 400?
Check
ODE integration.
(a)
Euler's amplitude growth per period on an oscillator with = 0.05?
(b)
Next RK45 step after err = 4 × 10⁻⁶ on 3 µs with tolerance 1 × 10⁻⁶?
Write units the way you normally would: 1.5 µs, 1500 ns and 0.0015 ms are the same answer.
Check
Stiffness.
(a)
Fastest time constant 1 × 10⁻⁹ s: forward-Euler steps for 0.01 s?
(b)
Trapezoidal factor for τ = 8 µs at h = 500 µs?
Check
FFT and Monte Carlo.
(a)
Multiplications in a -point FFT?
(b)
Monte Carlo samples for standard error 0.001 with s = 0.5?
A kind of problem counts as solid once you've got it right on the first try twice in a row. Back to A13