M.swap_rows(0,3)
print M
M.swap_rows(2,1)
print M.det()
N=matrix([[1,2,3,0],[2,6,6,1],[-1,0,0,3],[0,2,0,7]])
print N
N1=N.echelon_form()
print N1
N1.det()
N2=matrix([[2,1,1,1],[1,2,1,1],[1,1,2,1],[1,1,1,2]])
print N2
N3=N2.echelon_form()
print N3
N3.det()

Strang-4.2 28-U (last edited 2010-12-18 07:41:18 by pratyureepu)