借助inverse_fourier_transform()方法,我們可以計算傅立葉逆變換並返回未求值的函數。

逆傅立葉變換
Syntax: inverse_fourier_transform(F, k, x, **hints)
返回:Return the unevaluated function.
範例1:
在此示例中,我們可以看到,通過使用inverse_fourier_transform()方法,我們能夠計算傅立葉逆變換,並使用此方法返回未求值的函數。
Python3
# import inverse_fourier_transform
from sympy import inverse_fourier_transform, exp, sqrt, pi
from sympy.abc import x, k
# Using inverse_fourier_transform()
gfg = inverse_fourier_transform(sqrt(pi)*exp(-(pi * k)**2), k, x)
print(gfg)
輸出:
exp(-x**2)
範例2:
Python3
# import inverse_fourier_transform
from sympy import inverse_fourier_transform, exp, sqrt, pi
from sympy.abc import x, k
# Using inverse_fourier_transform()
gfg = inverse_fourier_transform(sqrt(pi)*exp(-(pi * k)**2), k, 4)
print(gfg)
輸出:
exp(-16)
相關用法
注:本文由純淨天空篩選整理自Jitender_1998大神的英文原創作品 sympy.integrals.transforms.inverse_fourier_transform() in python。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。