Open In App

sympy.integrals.transforms.laplace_transform() in python

Last Updated : 04 Feb, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

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




# import laplace_transform
from sympy.integrals import laplace_transform
from sympy.abc import t, s, a
 
# Using laplace_transform() method
gfg = laplace_transform(t**a, t, s)
 
print(gfg)


Output :
 

(s**(-a)*gamma(a + 1)/s, 0, a > -1) 
 

Example #2 :
 

Python3




# import laplace_transform
from sympy.integrals import laplace_transform
from sympy.abc import t, s, a
 
# Using laplace_transform() method
gfg = laplace_transform(t**a, t, 5)
 
print(gfg)


Output :
 

(5**(-a)*gamma(a + 1)/5, 0, a > -1) 
 

Example #3:

Python3




# import laplace_transform
from sympy.integrals import laplace_transform
from sympy import sin
from sympy.abc import t, s, a
 
# Using laplace_transform() method
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
Previous
Next
Share your thoughts in the comments

Similar Reads