Ch-3.5-exam-1-Revised-이승진

1911 days ago by matrix

A=matrix(4, 4, [1, 2, -2, 1, -1, 1, 2, 1, -1, -2, 0, 0, 1, 0, 1, -1 ]) b=matrix(4,1,[1,-2,5,1]) Ai=A.inverse() print Ai print Ai*b 
       
[ 6/5  2/5  7/5  8/5]
[-3/5 -1/5 -6/5 -4/5]
[ 1/5  2/5  2/5  3/5]
[ 7/5  4/5  9/5  6/5]
[ 9]
[-7]
[ 2]
[10]
[ 6/5  2/5  7/5  8/5]
[-3/5 -1/5 -6/5 -4/5]
[ 1/5  2/5  2/5  3/5]
[ 7/5  4/5  9/5  6/5]
[ 9]
[-7]
[ 2]
[10]