Ch-3.1-ex-4-Final-김준하

1919 days ago by matrix

수식을 조금 다듬었습니다.

A = matrix(QQ,[[1,2],[3,4],[5,6]]) B = matrix(QQ,[[4,3,2],[1,0,1]]) C = matrix(QQ,[[1,0,3],[2,3,3],[3,4,3]]) print "(AB)C=" print (A*B)*C print "A(BC)=" print A*(B*C) 
       
(AB)C=
[ 24  25  39]
[ 64  67 105]
[104 109 171]
A(BC)=
[ 24  25  39]
[ 64  67 105]
[104 109 171]
(AB)C=
[ 24  25  39]
[ 64  67 105]
[104 109 171]
A(BC)=
[ 24  25  39]
[ 64  67 105]
[104 109 171]