Last Updated 10/28/2022

Sage Essentials
Section 7: Matrix Manipulations

Gauss-Jordan Eliminations (GJE)

To perform GJE, the system is first encoded into an augmented matrix A. Then the system can be solved by the rref command.

Example 6

Solve the system { x+y+z=4 2x+2y+5z=11 4x+6y+8z=24  by GJE.

 

The solution is encoded in the last column of the matrix. In this case, it is { x=1 y=2 z=1 .

Try this!

Solve the system { x2y+3z=9 x+3y       =4 2x5y+5z=17  by GJE.


← Previous Example Next Example →