|
⇤ ← Revision 1 as of 2010-12-15 12:34:29
Size: 441
Comment:
|
Size: 506
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
