home *** CD-ROM | disk | FTP | other *** search
- # Laplace transform
-
- laplace(sin(x_), x_) := 1/(1+x^2)
- laplace(cos(x_), x_) := x/(1+x^2)
- laplace(e^x_, x_) := 1/(x-1)
- #laplace(x2_, x_) := if(x2==x, 1/x^2)
- laplace(1/sqrt(x_), x_) := sqrt(pi/x)
- laplace(x_^n_, x_) := if(n>0 and isinteger(n), n!/x^(n+1))
- laplace(x_,x_) := 1/x^2
-
- laplace(a_ + b_, x_) := laplace(a,x) + laplace(b,x)
- laplace(a_ - b_, x_) := laplace(a,x) - laplace(b,x)
-