Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7183973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:06:18+00:00 2026-05-28T18:06:18+00:00

I perform the iFFT on a symmetric spectrum (using Python). Why is the result

  • 0

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)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:06:20+00:00Added an answer on May 28, 2026 at 6:06 pm

    Try it like this:

    # My symmetric spectrum
    spectrum = numpy.array( [0+0j,1+1j,2+2j,3+3j,0+0j,3-3j,2-2j,1-1j] )
    
    # Perform the iFFT
    print numpy.fft.ifft(spectrum)
    

    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:

    octave-3.4.0:1> x = [1+1j,2+2j,3+3j,3-3j,2-2j];
    octave-3.4.0:2> y = ifft(x)
    y =
    
       2.20000 + 0.20000i  -1.98979 + 0.20000i   0.59465 + 0.20000i  -0.74743 + 0.20000i   0.94258 + 0.20000i
    

    whereas with my input data above I get a purely real result:

    octave-3.4.0:3> x = [0+0j,1+1j,2+2j,3+3j,0+0j,3-3j,2-2j,1-1j];
    octave-3.4.0:4> y = ifft(x)
    y =
    
       1.50000  -1.56066   0.00000   0.14645  -0.50000   0.56066  -1.00000   0.85355
    

    I assume that numpy probably uses the same comnventions for ordering FFT/IFFT input/output data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to perform cascade delete for some tables in my database, but I'm
I'm trying to perform a bitwise NOT in SQL Server. I'd like to do
I perform custom drawing in my UIView subclass using: - (void)drawRect:(CGRect)rect; How can I
I perform some calculations, based on the result, I would like to either use
I am trying to perform a Calculus Cross Product calculation using Linq and trying
I need to perform a 128-bit RC4 encryption, I'm using .NET and C#. Is
I want to perform animation on main thread (cause UIKit objects are not thread-safe),
I perform calculations using a double as follows: int minutes; double seconds; double DecMinutes;
I perform XSD XML validation using the following classes: import javax.xml.validation.Schema; import javax.xml.validation.SchemaFactory; import
I'm trying to perform a somewhat complex select from 3 tables, all joined by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.