|
Posted: 09/27/21
First draft due: 10/04/21, 11:55PM, Final draft due: 10/11/21
Note: This will be the last homework assignment with the two-stage submission process (first draft/comments/final draft). Subsequent homework assignments will use a single-stage submission.
Various
Consider with elements
Implement Gaussian elimination with partial pivoting (searching for maximum element in current column).
Verify your implementation by generating random for , , computing , applying your implementation to solve the system and obtain . Compute in 1,2, inf-norms.
Compare the above errors with built-in solver .
Repeat (b) and (c) with
with machine epsilon, and a uniform random number in the interval
With from problem 1, construct the symmetric matrix
Implement the Cholesky algorithm to solve .
Carry out steps from Problem 1.b. How do the errors compare with those from 1.b?
For , find the relative condition number of the following mathematical problems:
,
,
,
For , suppose an efficient solver for is available. Answer the following questions, with a view to solving , with assumed to be a good approximation of .
For , of full rank, prove the Sherman-Morrison formula
Write a pseudo-code algorithm on how to use the Sherman-Morrison formula to solve , with .
(Extra credit: 1 course point). Prove the generalization to rank- updates (Sherman-Morrison-Woodbury formula),
Again, write a pseudo-code algorithm on using the above to solve , with .
Consider a decomposition of into blocks of size
Write pseudo-code for the block form of Gaussian elimination. Carefully consider conditions to be checked at each step.
Modify the above algorithm for block tridiagonal.
Solve Exercise 12.3, p. 96 of Trefethen & Bau, Numerical Linear Algebra.