Differences between revisions 1 and 2
Revision 1 as of 2010-08-12 09:04:02
Size: 642
Editor: Aashita
Comment:
Revision 2 as of 2010-08-12 09:40:01
Size: 701
Editor: Aashita
Comment:
Deletions are marked like this. Additions are marked like this.
Line 14: Line 14:
solve(pde,c) # Verification of solution print solve(pde,c) # Verification of solution
Line 16: Line 16:
plot3d(lambda x, t:exp(-t)*sin(x) , (-2,2), (-2,2))
  • Book

    Advanced Engineering Mathematics

    Author

    Erwin Kreyszig

    Edition

    8th Edition

x=var('x')
t=var('t')
c=var('c') #  An arbitary Constant
u=function('u',x,t)
u=exp(-t)*sin(x) # solution
pde=diff(u,t)-c^2*diff(u,x,x) 
print solve(pde,c) # Verification of solution
#Thus, given 'u' is a solution of PDE since we can find a suitable constant 'c' for which equation is satisfied.
plot3d(lambda x, t:exp(-t)*sin(x) , (-2,2), (-2,2))

  • Solution by:

    • Aashita Kesarwani, Student, IIT Roorkee
    • Snehal Mitragotri, Ex-student, IIT Roorkee'
    • Tale PrafullKumar, Student, IIT Roorkee

SageDays/Kreyszig-11.1-6 (last edited 2010-08-12 09:40:01 by Aashita)