[Numpy-discussion] Possible typo in numpy.dft.fft docstring

Rudolph van der Merwe rudolphv at gmail.com
Thu Jan 26 00:45:01 EST 2006


Part of the fft function's docstring currently reads:

"...

The packing of the result is "standard": If A = fft(a, n), then A[0]
    contains the zero-frequency term, A[1:n/2+1] contains the
    positive-frequency terms, and A[n/2+1:] contains the negative-frequency
    terms, in order of decreasingly negative frequency. So for an 8-point
    transform, the frequencies of the result are [ 0, 1, 2, 3, 4, -3, -2, -1].

..."

Shouldn't the frequency arrangement in the last sentence be

[0, 1, 2, 3, -4, -3, -2, -1]

and not

[ 0, 1, 2, 3, 4, -3, -2, -1]

?

--
Rudolph van der Merwe




More information about the NumPy-Discussion mailing list