A=matrix([[1,1,1],[1,2,3],[3,5,7]])
print A
B=vector([0,0,1])
print B
X = A.solve_right(B)
print X
print "matrix equation has no solutions"
A=matrix([[1,1,1],[1,1,3],[3,5,7]])
print A
B=vector([0,0,1])
print B
X=A.solve_right(B)
print X

Strang-1-17-U (last edited 2010-12-18 08:09:15 by prakasam team)