The Lumenary · Advanced undergraduate
Numerical analysis
Name: ______________________
Date: ______________________
You will learn to
- Define condition numbers and prove the perturbation bound for linear systems; distinguish forward error, backward error and backward stability
- Solve linear systems by LU factorisation with partial pivoting, explain why pivoting is needed and why one should not form
- Solve least-squares problems by QR factorisation, explain why the normal equations square the condition number, and describe the QR algorithm for eigenvalues
- Prove that Euler's method converges with order 1, state and test the order of Runge–Kutta methods, and analyse absolute stability, stiffness and A-stability
- 1.
What is the condition number of ?
- 2.
A solver returns for , and you find that is the exact solution of with . What can you conclude?
- A.The backward error is tiny; the forward error may still be as large as about .
- B. is accurate to about 16 digits.
- C.The solver is unstable.
- D.Nothing at all about the error in .
- 3.
You solve in IEEE double precision () with a backward-stable method, and . Roughly how many correct significant decimal digits can you expect in the solution?
- 4.
Which of these invertible matrices has no factorisation (with unit lower triangular and upper triangular) unless rows are swapped?
- A.
- B.
- C.
- D.
- 5.
Why should you solve by LU with partial pivoting rather than by computing and multiplying? Choose all correct reasons.
- A.Forming costs about flops, three times the of LU.
- B.For a sparse matrix, is usually dense, while LU factors can often be kept sparse.
- C.The residual of can be about times larger: it is not backward stable.
- D. cannot be computed in floating point.
- E.Computing increases the condition number of the problem.
- 6.
Which Lean conclusion correctly expresses Theorem 1, , without dividing by norms that might be zero?
- A.
‖δx‖ * ‖b‖ ≤ condNum A * ‖δb‖ * ‖x‖ - B.
‖δx‖ * ‖x‖ ≤ condNum A * ‖δb‖ * ‖b‖ - C.
condNum A * ‖δb‖ * ‖x‖ ≤ ‖δx‖ * ‖b‖ - D.
‖δx‖ ≤ condNum A * ‖δb‖
- A.
- 7.
Explicit Euler is applied to on with equal steps (). What is the smallest for which the numerical solution decays, i.e. ?
- 8.
Write
rk4(f, y0, t_end, n)that applies steps of the classical fourth-order Runge–Kutta method to , , with step , and returns the approximation to .Computational — Practice
- 9.
Let () have full column rank and 2-norm condition number . Which statements are true? Choose all that apply.
- A., so the normal equations may lose all accuracy in double precision.
- B.Householder QR followed by is backward stable for the least-squares problem.
- C.The least-squares solution is unique.
- D.The minimal residual is .
- E.The normal equations are both cheaper and more accurate than QR.
- 10.
Which of these methods are A-stable, i.e. for every complex with ? Choose all that apply.
- A.Backward Euler,
- B.The trapezoidal rule,
- C.Explicit Euler,
- D.Classical RK4