Ch-3-prob-12-New-강산

1908 days ago by matrix

A=matrix(QQ, 3, 3, [3, 0, -1, 3, 4, -2, 3, 5, -2]) Ai=A.inverse() b=matrix(3,1,[1,1,2]) x=Ai*b print "x=" print x 
       
x=
[5/3]
[  1]
[  4]
x=
[5/3]
[  1]
[  4]