lapden.c
/* Compute the i-th frequency bin for an m-point DFT with spacing h. */
Compute the i-th frequency bin for an m-point DFT with spacing h.
Compute the i - th frequency bin for an m - point DFT with spacing h .
real fftfreq(int i, int m, real h) {
	int half = (m - 1) / 2;
	real f;
	f = 2. * M_PI * (real) ((i <= half) ? i : (i - m)) / (h * (real) m);
	return f;
}
real fftfreq ( int i , int m , real h ) { int half = ( m - 1 ) / 2 ; real f ; f = 2. * M_PI * ( real ) ( ( i <= half ) ? i : ( i - m ) ) / ( h * ( real ) m ) ; return f ; }
Compute the i-th frequency bin for an m-point DFT with spacing h.
Compute the i - th frequency bin for an m - point DFT with spacing h .