summaryrefslogtreecommitdiff
path: root/26/CH5/EX5.1.1/5_1_1.sce
blob: 4f00e19dd5df13e45b6b9e0af4134403494d0b62 (plain)
1
2
3
4
5
6
7
8
disp('to check if 2 is an eigenvalue of matrix A')
a=[3 2;3 8]
disp(a,'A=')
disp('A-2I=')
b=a-2*eye(2,2)
disp(b)
disp('The columns of A are clearly independent,')
disp('hence (A-2I)x=0 has a non trivial solution and 2 is an eigenvalue of matrix A')