RowReduce
Usage
Notes
Further Examples
A non-singular matrix can be row-reduced to the identity matrix.
In[1]:=
|
Out[1]//MatrixForm=
|
For non-zero singular matrices, the last row reduces to zero and the last column cannot be zeroed (if not zero from the start).
In[2]:=
|
Out[2]//MatrixForm=
|
This performs row reduction modulo on mm.
In[3]:=
|
Out[3]//MatrixForm=
|
You can use RowReduce to solve a system of linear equations. The matrix nn corresponds to the linear system {x + y - z 1, x + 2y + 5z 1, 2x + y + 3z -2}.
In[4]:=
|
The solution of the system is x = , y = , and z = .
In[5]:=
|
Out[5]//MatrixForm=
|
This checks the answer.
In[6]:=
|
Out[6]=
|
In[7]:=
|
|