Question: (a) Implement the Lanczos iteration algorithm in MATLAB, which takes a matrix A, initial vector b and the preferred number of iterations as input, and

(a) Implement the Lanczos iteration algorithm in MATLAB, which takes a matrix A, initial vector b and the preferred number of iterations as input, and returns the tridiagonal matrix Tn as output. (b) Generate a 100 x 100 real symmetric matrix in MATLAB and apply your al- gorithm to this matrix to find its smallest eigenvalue up to six digits accuracy. How many iterations do you need to satisfy the required accuracy? (You may use the built-in eigenvalue finder in MATLAB for finding the eigenvalues of Tn. and comparison.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
