Question


4. Let A. Į2 2 01 carryonít 10 iterations of the power method with 4. Let A =-1 2-1 | . Carry out 10 iterations of the power
0 0
Add a comment Improve this question Transcribed image text
Answer #1


%Matlab code for power method clear all close all %Matrix for which eigen value have to find A= [ 2-1 0;-1 2-1:0-1 21: fprint phi(x)- Eigen value is 2.000000. After 3 iterations phi(x)- -1. 33333333333333 Eigen value is 3.000000. After 4 iterations 3.Eigen value is 3.400000 After 6 iterations 3.41176470588235 -4. 82352941176471I 3.41176470588235 phi(x) 1.41379310344828 Eigephi(x) -1.41421143847487 Eigen value is 3.414201. After 10 iterations 3.41421143847487 -4.82842287694974 3.41421143847487 phi

%Matlab code for power method
clear all
close all
%Matrix for which eigen value have to find
A=[2 -1 0;-1 2 -1;0 -1 2];
fprintf('A matrix is\n')
disp(A)
x=[1;1;1];
fprintf('x vector is\n')
disp(x)

%power method 10 iterations
for i=1:10
    x=A*x;
    fprintf('After %d iterations\n \tx=\n',i)
    disp(x)
    fprintf('\n \tphi(x)=\n')
    disp(x./x(1));
    xx=x(1);
    x=x./x(1);
    fprintf('\n \tEigen value is %f.\n\n',xx)
end

%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%%

Add a comment
Know the answer?
Add Answer to:
4. Let A. Į2 2 01 carryonít 10 iterations of the power method with 4. Let A =-1 2-1 | . Carry out 10 iterations of the power method with normalization, starting with x( ) (1,1,1)T and using the...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT