A= matrix([[2,-4],[-1,5]])
print 'for the set of equations to be an upper triangular,we to multiply row2 by 2 and add row1 to it'
print 'new matrix-'
B=matrix([[2,4],[0,6]])
C=([[6],[6]])
X=B.solve_right(C)
X

Strang-1.3-2-U (last edited 2010-12-18 12:08:49 by AmitTewari)