XLPack 7.0
XLPack Numerical Library (Excel Worksheet Functions) Reference Manual
Loading...
Searching...
No Matches

◆ WSint1f()

Function WSint1f ( N As  Long,
R As  Variant 
)

One-dimensional sine transform

Purpose
WSint1f computes the one-dimensional Fourier transform of an odd sequence within a real array. This is referred to as the forward transform or Fourier analysis, transforming the sequence from physical to spectral space.
R(k) = (2/(N+1))ΣR(j)sin(π(j+1)(k+1)/(N+1)) (Σ for j = 0 to N-1) (k = 0 to N-1)
This transform is normalized since a call to WSint1f followed by a call to WSint1b (or vice-versa) reproduces the original array subject to algorithmic constraints, roundoff error, etc.
Returns
N x 1
Column 1
Rows 1 to NSine transformed data sequence
Parameters
[in]NThe length of the sequence to be transformed. (N >= 1)
The transform is most efficient when N + 1 is a product of small primes.
[in]R(N) The sequence to be transformed.
Reference
FFTPACK
Example
Compute the sine transform of the data sequence by WSint1f. Then compute its backward transform by WSint1b and confirm that the original data sequence is restored.

WSint1f

WSint1b