Differences between revisions 1 and 2
Revision 1 as of 2010-08-11 13:51:29
Size: 632
Comment:
Revision 2 as of 2010-08-11 14:02:12
Size: 635
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
       -5*x+2*y-9*z==26], x, y,z)# Displaying the Values of x and y        -5*x+2*y-9*z==26], x, y,z)# Displaying the Values of x, y and z
  • Book

    Advanced Engineering Mathematics

    Author

    Erwin Kreyszig

    Edition

    8th Edition

A=matrix([[0,7,3],[2,8,1],[-5,2,-9]]) # Coefficients of the variables
print 'Matrix=\n',A
b = vector([-12,0,26]) 
sol = A.solve_right(b)# Solution of the Matrix
A * sol
x, y,z = var('x, y,z')
print "\nResult of the Expressions:"
solve([0*x+7*y+3*z==-12, 
       2*x+8*y+1*z==0,
       -5*x+2*y-9*z==26], x, y,z)# Displaying the Values of x, y and z

  • Solution by:

    • Goheja Mahesh S, Diploma Student, Pravara Polytechnic Loni-413637

SageDays/Kreyszig-6.3-4 (last edited 2010-08-11 14:02:12 by Mahesh Goheja)