Differences between revisions 1 and 2
Revision 1 as of 2010-12-15 12:34:29
Size: 441
Editor: kirankumar
Comment:
Revision 2 as of 2010-12-15 12:41:51
Size: 506
Editor: kirankumar
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>
   * Kiran Kumar Thota, Student, IIIT-H
  
  • 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:

    • Kiran Kumar Thota, Student, IIIT-H

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