This linear algebra tool performs Gaussian elimination, while generating
an explanation of every step. For rational inputs, the answer is exact,
in contrast with most numerical software.

Please enter your matrix in Matlab format, like in the example below:

The matrix must start with a single "[" and end with a single "]".

Comma or space can be used to separate entries in a row. Any number of spaces, tabs
and commas can be used to separate or terminate entries.

Semicolon or newline can be used to separate or terminate rows.

The input syntax allows Lisp-style comments after the matrix:

The part of a line following ';' is a comment.

Everything between comment delimiters '#|' and |#' is a
comment, e.g. '#| Hello, world! |#'.

Please make sure rows have the same number of entries.

Rational numbers (fractions) are allowed as coefficients, for example

35/29

Fractions and integers can have an arbitrary number of digits.

Floating point numbers can be single-precision or double precision.
A single-precision number is entered as

1.23456f3 (=1.23456*10^3)

A double-precision number is entered as

1.2345678901234d7 (=1.2345678901234*10^7)

If no exponent part is specified, double precision is assumed.

Complex coefficients are allowed. For example, 1+2i is entered as

#C(1 2)

The real and imaginary parts may be integer, fractional or
floating point.