commands → gaussjordan

gaussjordan(A)
gaussjordan(A,P)

The gaussjordan command performs Gaussian elimination (row reduction) on the matrix A followed by back substitution to obtain a reduced row echelon form. An optional second argument P specifies the modulus.

Examples

gaussjordan([[1,2],[3,4]]);
	[[1, 0], [0, 1]]