A=matrix([[10,20],[20,50]])
print A
c=matrix([[1],[0]])
print c
print 'given Ax=c'
x1=A.inverse()
print x1
x=x1*c
print 'values of variables are '
print x
d=matrix([[0],[1]])
print d
x2=x1*d
print 'the values of other variables are'
print x2
print 'given a.inverse is all the variables we got'
A1=matrix([[1/2,-1/5],[-1/5,1/10]])
print A1

Strang-1.6-7 (last edited 2010-12-18 12:07:16 by manikanta)