Question: Consider the following matrix A: A = [ 2 . 9 7 6 6 0 . 3 9 4 5 0 . 4 1 9

Consider the following matrix A:
A=[2.97660.39450.41981.11590.39452.7328-0.30970.11290.4198-0.30972.56750.60791.11590.11290.60791.7231]
Design the following algorithms using the pseudocode presented in the class to determine the
eigenvalue(s) of A.
Algorithm 1: Implement the Rayleigh Quotient Iteration to determine the eigenvalue of matrix
A. Choose 4 different starting vectors e1,e2,e3 and e4. For each starting vector determine the
corresponding eigenvalue that the algorithm converges to. Your code must produce the following
table as output. For convergence, use a tolerance of 0.0001.
Algorithm 2: Design the QR Iteration algorithm to determine all the eigenvalues of A. Note: For
the QR factorization, you can design the function gramSchmidt() that employs the Gram-
Schmidt algorithm to get the Q and R matrices. The output of the algorithm should be:
The eigen values are:
The number of iterations for the convergence is:
Use a tolerance of 0.0001 between two successive iterations for every eigenvalue.
Note:
Use python to code and show results.
The algorithms must work for a general nn matrix
You cannot use a built-in function to calculate either of the algorithms.
The program should print the table in Algorithm 1.
 Consider the following matrix A: A=[2.97660.39450.41981.11590.39452.7328-0.30970.11290.4198-0.30972.56750.60791.11590.11290.60791.7231] Design the following algorithms using

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!