Next: D704 Complex Fast
Up: CERNLIB
Previous: D700 Real Fast
Routine ID: D703
| Author(s): H.-H. Umstätter | Library: KERNLIB
|
Submitter: | Submitted: 01.12.1981
|
Language: Fortran | Revised:
|
Subroutine RFFT computes either:
-
- the finite Fourier transform of a real periodic
sequence, or
-
- the corresponding inverse transform.
The period n must be a power of 2.
Given a sequence of real numbers
,
the forward transform computes the terms
|
|
|
|
|
|
which have period n in the subscript k and passess the property
, where
is the complex conjugate
of
. Therefore only those
for which
are computed by RFFT.
Conversely, given a sequence of complex numbers
possessing the property
, the inverse transform
computes the terms
|
|
|
which have period n in the subscript m and are real. Only those
for which
need be supplied as input to
RFFT for the calculation of (2).
To ensure optimum use of storage, the same array is used for input and
output, and all intermediate calculations are carried out in this array.
Structure:
SUBROUTINE subprogram
User Entry Names: RFFT
External References: CFFT (D704)
Usage:
COMPLEX C(ncdim)
REAL Y(nydim)
EQUIVALENCE (C,Y)
...
CALL RFFT (C,M)
...
- C
- ( COMPLEX) Array of length ncdim not less than
.
- Y
- ( REAL) Array of length nydim not less than n.
- M
- ( INTEGER) On entry, the absolute value of M
determines the value of n through the relation
.
If M is negative, expression (1) is evaluated. If M is
non-negative, expression (2) is evaluated. Unchanged on exit.
M < 0:
On entry,
.
On exit,
, as defined by
(1).
On entry,
.
On exit,
, as
defined by (2) with
.
Method:
RFFT calls the complex fast Fourier transform subroutine
CFFT (D704) with sequences of half-length as explained in Ref. 1.
References:
- E.O. Brigham, The fast Fourier transformation,
(Prentice-Hall, Englewood Cliffs 1974) Chap. 10, Sect. 10, Fig. 10-10.
D704
Next: D704 Complex Fast
Up: CERNLIB
Previous: D700 Real Fast
Janne Saarela
Mon Apr 3 15:06:23 METDST 1995