Answer to Question #236456 in MatLAB for kay

Question #236456

Modify the power method so that the stopping condition is changed to

| ((Axn-un xn)/|Xn|) | <tolerance

where xn, μn are the current estimates of the eigenvector and eigenvalue. Demonstrate the validity of your code by running it on the matrix

3 -1 0

-1 2 -1

0 -1 3


1
Expert's answer
2021-09-13T03:48:03-0400
A = gallery('circul',3)
[V,D] = eig(A)
[d,ind] = sort(diag(D))
Ds = D(ind,ind)
Vs = V(:,ind)
e1 = norm(A*V-V*D);

e2 = norm(A*Vs-Vs*Ds);

e = abs(e1 - e2)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS