Ch-3-Prob-5-New-황성빈

1898 days ago by matrix

A=matrix(4,5,[2,-2,-4,-2,2,2,-1,-3,-3,2,-2,2,5,1,-3,2,-2,-4,-1,5]) b=vector([2,3,-1,2]) print A.augment(b).rref(A) 
       
[1 0 0 0 9 3]
[0 1 0 0 1 0]
[0 0 1 0 2 1]
[0 0 0 1 3 0]
[1 0 0 0 9 3]
[0 1 0 0 1 0]
[0 0 1 0 2 1]
[0 0 0 1 3 0]