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 2  Due on 01/22/10 The first exercise should be submitted via Scorelator (4 attempts are available). Remember to use the command save with the flagascii to output your results. Upload only your .m files. 1. (15 points) The goal of the exercise is to program the power method, which is the simplest iterative algorithm to compute the largest eigenpair of a matrix, i.e. the pair ( x , ) with the largest value R such that Ax = x . The algorithm goes as follows Input A , x , and M . for k = 1 to M do, y = Ax k 1 r k = ( y ) 2 / ( x k 1 ) 2 x k = y / k y k 2 end do where ( y ) 2 denotes the second component of y . Use the matrix and the initial vector A = 6 5 5 2 6 2 2 5 1 x =  1 1 1 . Set M = 30 . The vector x 30 is the vector x k with k = 30 , i.e. after 30 steps in the loop....
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
 Leveque

Click to edit the document details