Question: [ QR - algorithm, 4 + 2 + 3 + 6 p t s Let A be a symmetric, tridiagonal matrix. We know that the
QRalgorithm, Let be a symmetric, tridiagonal matrix. We know that the
matrices defined by the QRalgorithm converge to a diagonal matrix that is similar to and
thus has the same eigenvalues as The convergence speed depends on the absolute value of
the ratio of consecutive eigenvalues. Let rin and
a Calculate the eigenvalues of as a function of by hand
b Implement the QRalgorithm using MATLAB's or Python's implementation of the QR
factorization, Your code should run for a square matrix of any size.
c Now define a tolerance Introduce a stopping criterion in your code, causing it
to stop when the maximal difference between the true eigenvalues of A and the diagonal
entries of is smaller than
d Use your code with the matrix given for at least five values of rin and make a plot
with versus the number of iterations needed to achieve the given tolerance. Explain your
findings by examining the ratio between the eigenvalues of A using a
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
