home *** CD-ROM | disk | FTP | other *** search
/ PC Open 11 / pcopen11.iso / Zipped / SM34A.ZIP / LIBRARY / LAPLACE.LI < prev    next >
Encoding:
Text File  |  1995-04-02  |  394 b   |  13 lines

  1. #    Laplace transform
  2.  
  3. laplace(sin(x_), x_) := 1/(1+x^2)
  4. laplace(cos(x_), x_) := x/(1+x^2)
  5. laplace(e^x_, x_) := 1/(x-1)
  6. #laplace(x2_, x_) := if(x2==x, 1/x^2)
  7. laplace(1/sqrt(x_), x_) := sqrt(pi/x)
  8. laplace(x_^n_, x_) := if(n>0 and isinteger(n), n!/x^(n+1))
  9. laplace(x_,x_) := 1/x^2
  10.  
  11. laplace(a_ + b_, x_) := laplace(a,x) + laplace(b,x)
  12. laplace(a_ - b_, x_) := laplace(a,x) - laplace(b,x)
  13.