Ch-10-Prob-6-Old-박종우

1841 days ago by matrix

A=matrix(5,5,[1,3,-6,4,3,0,1,2,8,2,0,0,2,0,-8,0,0,0,1,1,0,0,0,0,4]) print A.charpoly().factor() print A.eigenvalues() 
       
(x - 4) * (x - 2) * (x - 1)^3
[4, 2, 1, 1, 1]
(x - 4) * (x - 2) * (x - 1)^3
[4, 2, 1, 1, 1]
E=identity_matrix(5) print (A-E).rank() print ((A-E)^2).rank() print ((A-E)^3).rank() 
       
4
3
2
4
3
2