由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Computation版 - Fourier question
相关主题
fft algorithmHi, guys. Re: molecular simulation
[转载] Question about Energy spectrumdoes anyone ever used rlft3 code in NR?
FFThow to do Fourier transform for this ...
求DFT的Fortran源代码。。。。。。。。。。。。。。。。。。。。3-D dipole-dipole interaction
Any body here developed the program for first-principles calculations ?Matlab一问
look for a software请问谁用过Intel的MKL (Math Kernel Library)啊???????????
[转载] Numerical methods for calculating area一个发现: fftw里面的C语言做Fourier transform比Matlab快6倍 (无内文)
求助:奇怪的Matlab运算错误信号处理问题求教
相关话题的讨论汇总
话题: fourier话题: sin话题: nt话题: 2pi话题: let
进入Computation版参与讨论
1 (共1页)
p**f
发帖数: 7
1
Let's say we have
f(x)=sin(x), and thus f"(x)=-sin(x)
and let's use Fourier as
F(k)=\int f(x) e^{-i*2*pi*k*x}dx
and thus DFT as
F(n/NT)=\sum_{j=0}^{j=N-1} f(jT)e^{-i*2*pi*n*j/N}, n=0,...N-1
As a result, we should have
F[f"(x)]=-k^2*F[f(x)]
But if I calculate F[f(x)] use FFT, and then calculate F[f"(x)] according to
F[f"(x)]=-k^2*F[f(x)]=-(n/2pi)^2*F(f(x)), n=0,...N-1, NT=2pi
I cannot recover F[f"(x)]=F[-sin(x)]
what is the problem? I am really confused now. Thanks in advance.
r****y
发帖数: 1437
2

I think your definition of n is wrong. n = 0, ..., N/2, -N/2+1, ...-1.

【在 p**f 的大作中提到】
: Let's say we have
: f(x)=sin(x), and thus f"(x)=-sin(x)
: and let's use Fourier as
: F(k)=\int f(x) e^{-i*2*pi*k*x}dx
: and thus DFT as
: F(n/NT)=\sum_{j=0}^{j=N-1} f(jT)e^{-i*2*pi*n*j/N}, n=0,...N-1
: As a result, we should have
: F[f"(x)]=-k^2*F[f(x)]
: But if I calculate F[f(x)] use FFT, and then calculate F[f"(x)] according to
: F[f"(x)]=-k^2*F[f(x)]=-(n/2pi)^2*F(f(x)), n=0,...N-1, NT=2pi

1 (共1页)
进入Computation版参与讨论
相关主题
信号处理问题求教Any body here developed the program for first-principles calculations ?
Vasp DFT manuallook for a software
what is the fourier transform of..[转载] Numerical methods for calculating area
有关密度泛函的小问题:求助:奇怪的Matlab运算错误
fft algorithmHi, guys. Re: molecular simulation
[转载] Question about Energy spectrumdoes anyone ever used rlft3 code in NR?
FFThow to do Fourier transform for this ...
求DFT的Fortran源代码。。。。。。。。。。。。。。。。。。。。3-D dipole-dipole interaction
相关话题的讨论汇总
话题: fourier话题: sin话题: nt话题: 2pi话题: let