Differences between revisions 1 and 3 (spanning 2 versions)
Revision 1 as of 2010-12-15 12:34:29
Size: 441
Editor: kirankumar
Comment:
Revision 3 as of 2010-12-17 10:47:57
Size: 560
Editor: jejiramchand
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
print "Matrix Multiplication is not commutative"
Line 11: Line 13:
print "matrix multiplication is not commutative" print A
print B
print A*B # multipling A and B in this order
print B*A # multipling B and A in this order
Line 17: Line 22:
   * <Your Name>, <Profession>, <Organization>
   * <Your Name>, <Profession>, <Organization>
   * V.J.Ramchand, Student, GITAM University
   * G.Vamsi krishna, Student, GITAM University
  
  • Book

    Advanced Engineering Mathematics

    Author

    Erwin Kreyszig

    Edition

    8th Edition

print "Matrix Multiplication is not commutative"

var('A,B')  #initializing two matrices
A=matrix([[9,3],[-2,0]])
B=matrix([[1,-4],[2,5]])
print A
print B
print A*B   # multipling A and B in this order
print B*A   # multipling B and A in this order

  • Solution by:

    • V.J.Ramchand, Student, GITAM University
    • G.Vamsi krishna, Student, GITAM University

Kreyszig-6.2-4 (last edited 2010-12-17 10:47:57 by jejiramchand)