Section 7.4 RREF and determinant calculator
Set the value of
rows
to the number of rows.Set the value of
cols
to the number of columns.Enter the matrix entries as a comma-separated list. The placement on lines is not important as long as there are
rows*cols
entries.
Subsection 7.4.1 RREF
xxxxxxxxxx
rows=3
cols=4
M=Matrix(rows,cols,[
1,2,3,4,
5,6,7,8,
9,10,11,12
])
print ("The reduced row echelon form of ")
print (M)
print ("is")
M.rref()
Subsection 7.4.2 Determinant
xxxxxxxxxx
rows=cols=3
M=Matrix(rows,cols,[
1,2,3,
1,2,1,
3,-1,2
])
print ("The determinant of ")
print (M)
print ("is")
M.determinant()