XLPack 6.0
Excel VBA Numerical Library Reference Manual
Loading...
Searching...
No Matches

◆ Sinqmi()

Sub Sinqmi ( N As  Long,
Wsave() As  Double,
Info As  Long 
)

Initialization of work data for Sinqmf and Sinqmb

Purpose
This routine initializes array Wsave() for use in its companion routines Sinqmf and Sinqmb. The prime factorization of N together with a tabulation of the trigonometric functions are computed and stored in array Wsave().

Note - The initialization of Wsave() is not necessary for the succeeding call of Sinqmf or Sinqmb for the same N value. If the value of N has been changed, Wsave() should be re-initialized by this routine.
Parameters
[in]NLength of the sequence to be transformed. (N >= 1) (The transform is most efficient when N is a product of small primes)
[out]Wsave()Array Wsave(LWsave - 1) (LWsave >= 2*N + ln(N)/ln(2) + 4)
Work data, containing the prime factors of N and also containing certain trigonometric values which will be used in routines Sinqmf and Sinqmb.
[out]Info= 0: Successful exit.
= -1: The argument N had an illegal value. (N < 1)
= -2: The argument Wsave() is invalid.
Reference
FFTPACK
Example Program
See example of Sinqmf.