unencountered error in FFT python

Stefan Behnel stefan_ml at behnel.de
Sat Jan 30 20:28:47 CET 2010


uche, 30.01.2010 20:18:
> I got another problem after changing / to // . Yes, I am using 3.1.
> 
>     W.append(exp(sign * 2j * pi * i // N))
> TypeError: can't take floor of complex number.

Don't change it everywhere, just where it deals with integers. In the
above, "/" is perfectly right.

Stefan



More information about the Python-list mailing list