k=var('k')
a=matrix([[k,1],[4,k]])
print a
a.det()
solve(a.det(),k)
a.pivots()
a=matrix([[1,1],[4,2]])
print a
a.swap_rows(1,0)
print a
a.pivots()

Strang-page18,24-U (last edited 2010-12-17 07:01:54 by tejaswi)