I recently installed Python 2.5 on Windows and also installed numpy
1.0. I'd like to compute an FFT on an array of numbers but I can't
seem to access the FFT function. I'm fairly new to Python (obviously)
and I can't seem to find documentation to match my distribution of
numpy and I can't figure out how to access the FFT function.
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
IDLE 1.2
>>from numpy import * a=array((1,2,3,2,1,2,3,2,1)) fft(a)
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
fft(a)
TypeError: 'module' object is not callable
>>>
Help appreciated thanks. 2 22325
On 1 Nov 2006 16:04:59 -0800, mc****@gmail.com <mc****@gmail.comwrote:
I recently installed Python 2.5 on Windows and also installed numpy
1.0. I'd like to compute an FFT on an array of numbers but I can't
seem to access the FFT function. I'm fairly new to Python (obviously)
and I can't seem to find documentation to match my distribution of
numpy and I can't figure out how to access the FFT function.
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
IDLE 1.2
>from numpy import * a=array((1,2,3,2,1,2,3,2,1)) fft(a)
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
fft(a)
TypeError: 'module' object is not callable
>>
Help appreciated thanks.
The fft routines now live in numpy.fft.
>>from numpy.fft import fft from numpy import array a=array((1,2,3,2,1,2,3,2,1)) fft(a)
array([ 17. +0.j , -1.15270364-0.41954982j,
-3.37938524-2.83564091j, 0.5 +0.8660254j ,
0.03208889+0.18198512j, 0.03208889-0.18198512j,
0.5 -0.8660254j , -3.37938524+2.83564091j,
-1.15270364+0.41954982j])
>
-- http://mail.python.org/mailman/listinfo/python-list mc****@gmail.com wrote:
I recently installed Python 2.5 on Windows and also installed numpy
1.0.
You will want to ask numpy questions on the numpy mailing list. http://www.scipy.org/Mailing_Lists
I'd like to compute an FFT on an array of numbers but I can't
seem to access the FFT function. I'm fairly new to Python (obviously)
and I can't seem to find documentation to match my distribution of
numpy and I can't figure out how to access the FFT function.
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
IDLE 1.2
>>>from numpy import * a=array((1,2,3,2,1,2,3,2,1)) fft(a)
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
fft(a)
TypeError: 'module' object is not callable
All of the fft functions are in the numpy.fft module.
>>from numpy import * a=array((1,2,3,2,1,2,3,2,1)) fft.fft(a)
array([ 1.70000000e+01+0.j , -1.15270364e+00-0.41954982j,
-3.37938524e+00-2.83564091j, 5.00000000e-01+0.8660254j ,
3.20888862e-02+0.18198512j, 3.20888862e-02-0.18198512j,
5.00000000e-01-0.8660254j , -3.37938524e+00+2.83564091j,
-1.15270364e+00+0.41954982j])
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mclaugb |
last post by:
Has anyone recompiled the Scientific Computing package using NumPy instead
of Numeric?
I need a least squares algorithm and a Newton Rhaphson algorithm which is
contained in Numeric but all the...
|
by: Fie Pye |
last post by:
Hallo
I would like to have a high class open source tools for scientific computing and powerful 2D and 3D data visualisation. Therefore I chosepython, numpy and scipy as a base. Now I am in...
|
by: jefishman |
last post by:
I have a Python (2.3.x) interpreter running embedded in a C++
application on a host machine. I would like to run a specific package
on that host machine (numpy). I have managed to compile...
|
by: sam |
last post by:
hello all,
i am currently in the process of planning a piece of software to model
polymerisation kinetics, and intend to use python for all the
high-level stuff. the number-crunching is...
|
by: robert |
last post by:
Turning algs for old NumPy modules into numpy code I suffer from this:
Upon further processing of returns of numpy calculations, lots of data in an apps object tree will become elementary numpy...
|
by: Christian |
last post by:
Hi,
I'm having problems with python 2.4.4 built on a Celeron D. I had problems
earlier with that processor which I think has understands some 64 bit
instructions (whatever that means) but is still...
|
by: jadamwilson2 |
last post by:
Hello,
I have recently become interested in using python for scientific
computing, and came across both sage and enthought. I am curious if
anyone can tell me what the differences are between the...
|
by: Robert LaMarca |
last post by:
Hi,
I am using numpy and wish to create very large arrays. My system is AMD 64 x 2 Ubuntu 8.04. Ubuntu should be 64 bit. I have 3gb RAM and a 15 GB swap drive.
The command I have been trying...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |