This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: U. Washington AMATH 352 - Winter 2010 Homework 4 - Due on 02/19/09 The first two exercises should be submitted via Scorelator (4 attempts per exercise are available). Remember to use the command save with the flag-ascii to output your results. Upload only your “.m” files. You will upload, at least, one file per exercise. 1. (10 points) The goal of this exercise is to implement the QR algorithm. • Set A and ε . • while max i 6 = j | a ij | > ε max i | a ii | , – Compute the QR factorization of A . – Overwrite A with the product RQ . • end while Use the matrix A = 2- 1- 3- 1 6 5- 3 5 8 and ε = 10- 12 . Count the number of iterations. Output the resulting diagonal in diagA.dat and the number of iterations in iter.dat. 2. (10 points) Consider the norm k A k = m X i =1 n X j =1 | a ij | where the matrix A = ( a ij ) m × n has m rows and n columns. Write a Matlab code computing this norm. Use the matrix A = 6 5- 5 2 6- 2 2 5- 1 and the matrix...
View Full Document
This note was uploaded on 03/31/2010 for the course AMATH 352 taught by Professor Leveque during the Winter '07 term at University of Washington.
- Winter '07