Differences between revisions 3 and 5 (spanning 2 versions)
Revision 3 as of 2010-12-16 12:14:03
Size: 610
Editor: 172
Comment:
Revision 5 as of 2010-12-16 12:16:53
Size: 598
Editor: 172
Comment:
Deletions are marked like this. Additions are marked like this.
Line 29: Line 29:
  * First_sprint.  anp.
  • Book

    Advanced Engineering Mathematics

    Author

    Erwin Kreyszig

    Edition

    8th Edition

A = Matrix([[3,0,2,2],[-6,42,24,54],[21,-21,0,-15]])
print A
A = Matrix([[3,0,2,2],[-6,42,24,54],[21,-21,0,-15]])
cols=A.columns()
print cols
mult1=cols[0].cross_product(cols[1])
print mult1
mult1!=(0,0,0)
print "Rank is at least 2"
mult2=cols[1].cross_product(cols[2])
print mult2
mult2*(-3/2)
mult2*(-3/2)==mult1
These 3 vectors r linearly dependent
Therefore rank is 2

  • Solution by: anp.

SageDays/Kreyszig-PageNo-334-Example1 -S (last edited 2010-12-16 12:16:53 by 172)