Python中的sympy.integrals.inverse_laplace_transform()
借助inverse_laplace_transform()方法,我们可以计算 F(s) 的拉普拉斯变换的逆。
Syntax : inverse_laplace_transform(F, s, t)
Return : Return the unevaluated transformation function.
示例 #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)
输出 :
Heaviside(-a + t)
示例 #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)
输出 :
Heaviside(5 – a)