Differences between revisions 1 and 2
Revision 1 as of 2010-12-18 06:12:01
Size: 344
Editor: jejiramchand
Comment:
Revision 2 as of 2010-12-18 06:13:23
Size: 676
Editor: jejiramchand
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:
Your Code Goes Here
Copy the sage notebook text and paste/yank it here!
L=matrix([[1,0,0],[1,1,0],[1,1,1]])
U=matrix([[1,1,1],[0,1,1,],[0,0,1]])
b=matrix([[4],[5],[6]])
print '---L---'
print L
print '----U----'
print U
print '----b----'
print b
print '-----L.inverse----'
x1=L.inverse()
print '--------'
print x1
c= x1*b
print '---c----'
print c
x2=U.inverse()
print '---U.inverse---'
print x2
x3=x2*c
print '---x----'
print x3
A=L*U
print '---A---'print A
Line 15: Line 37:
   * <Your Name>, <Profession>, <Organization>
   * <Your Name>, <Profession>, <Organization>
   *V.J.Ramchand, Student, GITAM University
   *G.Vamsi krishna, Student, GITAM University
  • Book

    Linear Algebra

    Author

    Gilbert Strang

    Edition

L=matrix([[1,0,0],[1,1,0],[1,1,1]])
U=matrix([[1,1,1],[0,1,1,],[0,0,1]])
b=matrix([[4],[5],[6]])
print '---L---'
print L
print '----U----'
print U
print '----b----'
print b
print '-----L.inverse----'
x1=L.inverse()
print '--------'
print x1
c= x1*b
print '---c----'
print c
x2=U.inverse()
print '---U.inverse---'
print x2
x3=x2*c
print '---x----'
print x3
A=L*U
print '---A---'print A

  • Solution by:

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

Strang-1.5-33-U (last edited 2010-12-18 06:13:23 by jejiramchand)