Fourier sine and cosine representation, finite Fourier transforms