Ch-3.2-C-41-New-박종우

1903 days ago by matrix

A=matrix([[1,0,1], [3,-4,7], [9,-8,14]]) b=vector([2,6,15]) IA=A.inverse() print IA print "A^(-1)*b=" print IA*b 
       
[   0 -2/3  1/3]
[ 7/4 5/12 -1/3]
[   1  2/3 -1/3]
A^(-1)*b=
(1, 1, 1)
[   0 -2/3  1/3]
[ 7/4 5/12 -1/3]
[   1  2/3 -1/3]
A^(-1)*b=
(1, 1, 1)