a=matrix([[2,-1,0,0,0],[-1,2,-1,0,0],[0,-1,2,-1,0],[0,0,-1,2,5]])
print a
a.pivots()

Strang-page18-25-U (last edited 2010-12-17 04:48:56 by tejaswi)