I perform the iFFT on a symmetric spectrum (using Python). Why is the result not an real-valued signal but contains complex values?
# My symmetric spectrum
spectrum = numpy.array( [1+1j,2+2j,3+3j,3-3j,2-2j] )
# Perform the iFFT
print numpy.fft.ifft(spectrum)
Output:
(2.2+0.2j)
(-1.98979431354+0.2j)
(0.59464641547+0.2j)
(-0.74743281997+0.2j)
(0.942580718037+0.2j)
Try it like this:
Normally bin 0 is DC, bin N/2 is Nyquist, and both of these values are real. For the other terms the symmetry is complex conjugate around Nyquist.
With Octave (MATLAB clone) I get the same result as you for your original input data:
whereas with my input data above I get a purely real result:
I assume that numpy probably uses the same comnventions for ordering FFT/IFFT input/output data.