nag_fft_init_trig (c06gzc) calculates the trigonometric coefficients required for the computation of discrete Fourier transforms.
This is a utility function for use in conjunction with nag_fft_multiple_real (c06fpc)
and nag_fft_multiple_hermitian (c06fqc)
. nag_fft_init_trig (c06gzc) initializes the array trig
with trigonometric coefficients according to the value of n
and must be called prior to the first call of one of the above listed functions.
nag_fft_init_trig (c06gzc) is not threaded in any implementation.
The program reads in 3 real data sequences and prints their discrete Fourier transforms in Hermitian format as calculated by nag_fft_multiple_real (c06fpc)
. A call is made to nag_fft_init_trig (c06gzc) to initialize the array trig
prior to calling nag_fft_multiple_real (c06fpc)
. The transforms are then printed out in full complex form after a call to nag_multiple_hermitian_to_complex (c06gsc)