Ch-3.1-C-10-New-박종우

1905 days ago by matrix

A=matrix(2,3,[3,-4,7,-2,5,0]) B=matrix(2,3,[2,-4,6,-8,2,14]) C=matrix(3,2,[3,7,-5,2,6,1]) TA= A.transpose() TB= B.transpose() print "A-1/2*B=" print A-B/2 print "A+B^T=" print "error" print "A^T-3C=" print TA-3*C 
       
A-1/2*B=
[ 2 -2  4]
[ 2  4 -7]
A+B^T=
error
A^T-3C=
[ -6 -23]
[ 11  -1]
[-11  -3]
A-1/2*B=
[ 2 -2  4]
[ 2  4 -7]
A+B^T=
error
A^T-3C=
[ -6 -23]
[ 11  -1]
[-11  -3]