Ch-10-기말-2-New-이승진

1837 days ago by matrix

A=matrix(4,4,[2,-4,2,2,-2,0,1,3,-2,-2,3,3,-2,-6,3,7]) I=identity_matrix(4) x1=vector([0,1,1,1]) print A.eigenvectors_right() print print (A-4*I).augment(x1).rref() 
       
[(4, [
(0, 1, 1, 1)
], 2), (2, [
(1, 0, -1, 1),
(0, 1, 2, 0)
], 2)]

[ 1  0  0  0  1]
[ 0  1  0 -1 -1]
[ 0  0  1 -1 -1]
[ 0  0  0  0  0]
[(4, [
(0, 1, 1, 1)
], 2), (2, [
(1, 0, -1, 1),
(0, 1, 2, 0)
], 2)]

[ 1  0  0  0  1]
[ 0  1  0 -1 -1]
[ 0  0  1 -1 -1]
[ 0  0  0  0  0]
A=matrix(4,4,[2,-4,2,2,-2,0,1,3,-2,-2,3,3,-2,-6,3,7]) M=matrix(4,4,[0,1,1,0,1,-1,0,1,1,-1,-1,2,1,0,1,0]) J=matrix(4,4,[4,1,0,0,0,4,0,0,0,0,2,0,0,0,0,2]) print A*M==M*J 
       
True
True