The Calculation of Trigonometric Fourier Coefficients

A method for the numerical evaluation of trigonometric Fourier coefficients is described. This method is suitable for sufficiently smooth functions and is essentially a modification of the standard method based on trapezoidal rule sums using, optionally, the fast Fourier transform.