Python中的sympy.integrals.transforms.inverse_hankel_transform()
借助inverse_hankel_transform()方法,我们可以计算汉克尔变换的逆,并使用该方法返回未计算的函数。
Syntax : inverse_hankel_transform(F, k, r, nu, **hints)
Return : Return the unevaluated function.
示例 #1:
在这个例子中,我们可以看到通过使用inverse_hankel_transform()方法,我们能够计算逆汉克尔变换并返回未计算的函数。
Python3
# import inverse_hankel_transform
from sympy import hankel_transform, inverse_hankel_transform, gamma
from sympy import gamma, exp, sinh, cosh
from sympy.abc import r, k, m, nu, a
ht = hankel_transform(5/(r*m), r, k, nu)
# Using inverse_hankel_transform() method
gfg = inverse_hankel_transform(ht, k, r, nu)
print(gfg)
Python3
# import inverse_hankel_transform
from sympy import hankel_transform, inverse_hankel_transform, gamma
from sympy import gamma, exp, sinh, cosh
from sympy.abc import r, k, m, nu, a
ht = hankel_transform(exp(-2*r), r, k, 0)
# Using inverse_hankel_transform() method
gfg = inverse_hankel_transform(ht, k, r, 0)
print(gfg)
输出 :
5/(m*r)
示例 #2:
Python3
# import inverse_hankel_transform
from sympy import hankel_transform, inverse_hankel_transform, gamma
from sympy import gamma, exp, sinh, cosh
from sympy.abc import r, k, m, nu, a
ht = hankel_transform(exp(-2*r), r, k, 0)
# Using inverse_hankel_transform() method
gfg = inverse_hankel_transform(ht, k, r, 0)
print(gfg)
输出 :
exp(-2*r)