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