Ch-3.1-ex-4-new-오충헌

1917 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 (A*B)*C print A*(B*C) 
       
[ 24  25  39]
[ 64  67 105]
[104 109 171]
[ 24  25  39]
[ 64  67 105]
[104 109 171]
[ 24  25  39]
[ 64  67 105]
[104 109 171]
[ 24  25  39]
[ 64  67 105]
[104 109 171]