NFourierTransform[expr,t,ω]
gives a numerical approximation to the Fourier transform of expr evaluated at the numerical value ω, where expr is a function of t.
更多信息和选项
范例
基本范例
参见
技术笔记
相关指南
FourierSeries`
FourierSeries`
NFourierTransform
NFourierTransform[expr,t,ω]
gives a numerical approximation to the Fourier transform of expr evaluated at the numerical value ω, where expr is a function of t.
更多信息和选项
- To use NFourierTransform, you first need to load the Fourier Series Package using Needs["FourierSeries`"].
- The numerical approximation to the Fourier transform of expr is by default defined to be
NIntegrate[expr ωt,{t,-∞,∞}]. - Different choices for the definition of the Fourier transform can be specified using the option FourierParameters.
- With the setting FourierParameters->{a,b}, the Fourier transform computed by NFourierTransform is
NIntegrate[expr bωt,{t,-∞,∞}]. - The parameter b in the setting FourierParameters->{a,b} must be numeric.
- In addition to the option FourierParameters, NFourierTransform can also accept the options available to NIntegrate. These options are passed directly to NIntegrate.
范例
基本范例 (1)
Needs["FourierSeries`"]Numerical Fourier transform for a box function:
f[t_] := UnitStep[1 - t] UnitStep[t + 1]Plot[NFourierTransform[f[t], t, ω], {ω, -20, 20}, PlotRange -> All]Compare with the answer from symbolic evaluation:
NFourierTransform[f[t], t, 0.7]FourierTransform[f[t], t, ω]% /. {ω -> 0.7}