Course Test · University: upper level
Numerical analysis: test
The double nearest 0.1 and machine epsilon, catastrophic cancellation, bisection, Newton, secant and fixed-point iteration with their rates, Lagrange interpolation, natural cubic splines, Chebyshev nodes, least squares, Richardson extrapolation, the trapezoid, Simpson and Gauss rules, Euler and Runge–Kutta steps and the stability limit of Euler's method, LU factorisation, condition numbers, Jacobi iteration and the power method.
Twenty exercises of the kind this course sets. Answers are on the independent answers page; the same exercises done with RatMath are on the RatMath answers page.
- 1.Floating pointWhat exact rational number does the double nearest to 0.1 equal? What is machine epsilon (the gap from 1 to the next double)?
- 2.Catastrophic cancellationEvaluate at in double precision. What goes wrong, and what is the true value?
- 3.BisectionBisection on over : how many steps until the guaranteed error is below ?
- 4.Newton's methodApply Newton's method to from . Give .
- 5.Secant methodApply the secant method to from , . Give and .
- 6.Fixed-point iterationFor , by what factor does the error shrink each step near the fixed point?
- 7.InterpolationFind the polynomial through , , and evaluate it at 3.
- 8.Natural cubic splineFind the natural cubic spline through , , and its value at .
- 9.Chebyshev nodesGive the three Chebyshev nodes on .
- 10.Least squaresFit a least-squares line to , , , .
- 11.Richardson extrapolationEstimate for with central differences at and , then one Richardson step.
- 12.Trapezoid ruleApproximate by the trapezoid rule with 4 panels.
- 13.Simpson's ruleApply Simpson's rule with one panel (three points) to .
- 14.Gaussian quadratureApply two-point Gauss–Legendre quadrature to .
- 15.Euler's methodUse Euler's method with on , , up to .
- 16.Runge–KuttaTake one classical RK4 step of size 0.1 on , .
- 17.StabilityFor , what is the largest step for which Euler's method does not grow?
- 18.LU factorisationFactor as (no pivoting).
- 19.Condition numberFind of .
- 20.Iterative methods and eigenvalues(a) Two Jacobi steps for , from . (b) The dominant eigenvalue of by the power method.