📌  相关文章
📜  Python中的sympy.integrals.inverse_laplace_transform()

📅  最后修改于: 2022-05-13 01:55:03.331000             🧑  作者: Mango

Python中的sympy.integrals.inverse_laplace_transform()

借助inverse_laplace_transform()方法,我们可以计算 F(s) 的拉普拉斯变换的逆。

示例 #1:
在这个例子中,我们可以看到通过使用 inverse_laplace_transform() 方法,我们能够计算拉普拉斯逆变换并返回未计算的函数。

Python3
# import inverse_laplace_transform
from sympy.integrals.transforms import inverse_laplace_transform
from sympy import exp, Symbol
from sympy.abc import s, t
 
a = Symbol('a', positive = True)
# Using inverse_laplace_transform() method
gfg = inverse_laplace_transform(exp(-a * s)/s, s, t)
 
print(gfg)


Python3
# import inverse_laplace_transform
from sympy.integrals.transforms import inverse_laplace_transform
from sympy import exp, Symbol
from sympy.abc import s, t
 
a = Symbol('a', positive = True)
# Using inverse_laplace_transform() method
gfg = inverse_laplace_transform(exp(-a * s)/s, s, 5)
 
print(gfg)


输出 :

示例 #2:

Python3

# import inverse_laplace_transform
from sympy.integrals.transforms import inverse_laplace_transform
from sympy import exp, Symbol
from sympy.abc import s, t
 
a = Symbol('a', positive = True)
# Using inverse_laplace_transform() method
gfg = inverse_laplace_transform(exp(-a * s)/s, s, 5)
 
print(gfg)

输出 :