Matrix RREF

Description

Here is Sage cell that computes the RREF (Reduced Row Echelon Form) for matrix $A$:

(1)
\begin{align} A = \begin{pmatrix} 1 & 2 & 6 \\ 3 & 4 & 24 \end{pmatrix} \end{align}

Sage Cell

Code

A = matrix([[1, 2, 6], [3, 4, 24]])
A.rref()


Options

Computing Row Echelon Form

Sage also has the option to simply compute the row echelon form of a matrix.

A = matrix([[1, 2, 6], [3, 4, 24]])
A.echelon_form()


Tags

CC:

Primary Tags: Linear algebra: Matrices.

Secondary Tags: Matrices: Echelon form.