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

  • SEARCH
  • Home
  • 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 6711227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:06:53+00:00 2026-05-26T08:06:53+00:00

I have some ancient code (5 years old) and how I used to access

  • 0

I have some ancient code (5 years old) and how I used to access real_fft() method was this:

from FFT import *
real_fft(data, fft_length)

I guess the FFT module came with NumPy. Now, years later I installed the NumPy 1.6.1 with

pip install numpy

And all I see in the docs http://www.scipy.org/Numpy_Functions_by_Category, are these functions:

fft()

fftfreq()

fftshift()

ifft()

It is strange, because in this numpy docs, real_fft() is there:

http://numpy.sourceforge.net/numdoc/HTML/numdoc.htm#pgfId-304711

  • 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-26T08:06:53+00:00Added an answer on May 26, 2026 at 8:06 am

    It looks like NumPy underwent some reorganisation in recent years.

    http://www.scipy.org/Numpy_Example_List_With_Doc#fft

    FFT is now numpy.fft, and real_fft() seems to be renamed into rfft()

    >>> from numpy import *
    >>> 
    >>> signal = array([-2.,  8., -6.,  4.,  1., 0.,  3.,  5.]) 
    >
    >>> from numpy.fft import *
    >>> 
    >>> 
    >>> f = fft(signal)
    >>> 
    >>> 
    >>> print f
    [ 13.00000000 +0.j           3.36396103 +4.05025253j   2.00000000 +1.j
      -9.36396103-13.94974747j -21.00000000 +0.j          -9.36396103+13.94974747j
       2.00000000 -1.j           3.36396103 -4.05025253j]
    >>> 
    >>> 
    >>> 
    >>> 
    >>> f = rfft(signal)
    >>> 
    >>> print f
    [ 13.00000000 +0.j           3.36396103 +4.05025253j   2.00000000 +1.j
      -9.36396103-13.94974747j -21.00000000 +0.j        ]
    >>> 
    >>> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have some ancient Delphi code (might have even originated as Turbo Pascal code)
I have some code like this in a winforms app I was writing to
I'm working on porting some ancient code (10.2 era) from NSCoding/plist based archiving to
I'm upgrading some ancient (from 2003) Delphi code to Delphi Architect XE and I'm
Note, this is some ancient NHibernate installation! I have the following NHibernate class: [Serializable]
I have some ancient code which I want to convert to PDO: <?php function
I have some perl code that looks something like this: my @array = map
I have some code for starting a thread on the .NET CF 2.0: ThreadStart
We have some input data that sometimes appears with &nbsp characters on the end.
I have some classes layed out like this class A { public virtual void

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.