| Hosted by CoCalc | Download
A=matrix(QQ, [[1,1,1,6],[1,-2,1,0],[-1,2,1,6]]) print('The matrix A is:') A print('The reduced row echelon form of the matrix A is:') A.rref()
The matrix A is: [ 1 1 1 6] [ 1 -2 1 0] [-1 2 1 6] The reduced row echelon form of the matrix A is: [1 0 0 1] [0 1 0 2] [0 0 1 3]