Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

Row reduction of a matrix (row_reduce)

Reduced row echelon form of a matrix.

How to write it

row_reduce(matrix)

matrix
A matrix, written as a list of rows. Takes a matrix, written as a list of rows.

Examples

  • rref⁡(123456)=(10−1012)\displaystyle \operatorname{rref} \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{pmatrix} = \begin{pmatrix} 1 & 0 & -1 \\ 0 & 1 & 2 \end{pmatrix}
    row_reduce([[1, 2, 3], [4, 5, 6]])

    In the solver, row_reduce([[1, 2, 3], [4, 5, 6]]) gives [[1, 0, -1], [0, 1, 2]].

    Open in the solver