sympy.integrals.transforms.laplace_transform() in python
Last Updated :
04 Feb, 2023
With the help of laplace_transform() method, we can compute the laplace transformation F(s) of f(t).
Syntax : laplace_transform(f, t, s)
Return : Return the laplace transformation and convergence condition.
Example #1 :
In this example, we can see that by using laplace_transform() method, we are able to compute the laplace transformation and return the transformation and convergence condition.
Python3
from sympy.integrals import laplace_transform
from sympy.abc import t, s, a
gfg = laplace_transform(t * * a, t, s)
print (gfg)
|
Output :
(s**(-a)*gamma(a + 1)/s, 0, a > -1)
Example #2 :
Python3
from sympy.integrals import laplace_transform
from sympy.abc import t, s, a
gfg = laplace_transform(t * * a, t, 5 )
print (gfg)
|
Output :
(5**(-a)*gamma(a + 1)/5, 0, a > -1)
Example #3:
Python3
from sympy.integrals import laplace_transform
from sympy import sin
from sympy.abc import t, s, a
gfg = laplace_transform(sin(a * t), t, s)
print (gfg)
|
Output :
(a/(a**2 + s**2), 0, Eq(2*Abs(arg(a)), 0))
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...