A = Matrix([[2,1],[1,7]])
B = Matrix([[-2,5],[0,8]])
C = Matrix([[6,0,3],[1,0,-5]])
#print A+C
print "(i)"
print "A+C cannot be obtained because they are of different dimensions"
print 
C1= transpose(C)
C2= transpose (C1)
print "(ii)"
print C2
print
#print C+C2
print "(iii)"
print "cannot be obtained,same reason"

SageDays/Kreyszig-6.1--3 (last edited 2010-08-12 10:34:32 by msunyuma)