Given matrix
\[ \left [\begin {array}{ccc}5 & 2 & 18 \\0 & 1 & 4 \\4 & 1 & 12 \end {array}\right ] \]
Find its Reduced Echelon form.
restart;
A:=Matrix([[5,2,18],[0,1,4],[4,1,12]]);
Student:-LinearAlgebra:-ReducedRowEchelonForm(A)
\[ \left [\begin {array}{ccc}1 & 0 & 2 \\0 & 1 & 4 \\0 & 0 & 0 \end {array}\right ] \]
Another option is
restart;
A:=Matrix([[5,2,18],[0,1,4],[4,1,12]]);
MTM:-rref(A)
\[ \left [\begin {array}{ccc}1 & 0 & 2 \\0 & 1 & 4 \\0 & 0 & 0 \end {array}\right ] \]