Algosim documentation: RowEchelonForm

RowEchelonForm

Transforms a matrix to row echelon form using elementary row operations.

Syntax

Description

If A is a matrix, then RowEchelonForm(A) returns A transformed into row echelon form using elementary row operations.

Examples

A ≔ ❨❨5, 1, 2, 3, 4❩, ❨4, 0, 2, 1, 7❩, ❨6, 3, 0, 4, 7❩, ❨4, 5, 2, 3, 9❩, ❨4, 0, 1, 2, 5❩❩
⎛5  1  2  3  4⎞
⎜4  0  2  1  7⎟
⎜6  3  0  4  7⎟
⎜4  5  2  3  9⎟
⎝4  0  1  2  5⎠
RowEchelonForm(A)
⎛             6               3               0               4               7⎞
⎜             0               3               2  0.333333333333   4.33333333333⎟
⎜             0               0   3.33333333333  −1.44444444444   5.22222222222⎟
⎜             0               0               0   1.13333333333  −4.36666666667⎟
⎝             0               0               0               0            1.75⎠

See also