Ch-2-Prob-6-New-권의회

1921 days ago by matrix

Solve the system using Gauss-Jordan elimination.

x+y+z=4

2x-3y+z=2

-x+2y-z=-1

Aug =matrix([[1,1,1,4],[2,-3,1,2],[-1,2,-1,-1]]) print Aug.rref() 
       
[1 0 0 2]
[0 1 0 1]
[0 0 1 1]
[1 0 0 2]
[0 1 0 1]
[0 0 1 1]