Ch-10-Prob-5-New-박종우

1840 days ago by matrix

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