Ch-7-Prob-8-New-이승진

1878 days ago by matrix

A=matrix(QQ,3,6,[1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8]) A_T=A.transpose() rA=rank(A) rAT=rank(A_T) print A.rref() print A_T.rref() print rA print rAT print (rA==rAT) 
       
[ 1  0 -1  0 -1 -2]
[ 0  1  2  0  1  2]
[ 0  0  0  1  1  1]
[1 0 0]
[0 1 0]
[0 0 1]
[0 0 0]
[0 0 0]
[0 0 0]
3
3
True
[ 1  0 -1  0 -1 -2]
[ 0  1  2  0  1  2]
[ 0  0  0  1  1  1]
[1 0 0]
[0 1 0]
[0 0 1]
[0 0 0]
[0 0 0]
[0 0 0]
3
3
True