MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/1la4jp/understanding_the_fft_algorithm_with_python/cbxr9n6/?context=3
r/Python • u/jakevdp • Aug 28 '13
13 comments sorted by
View all comments
Show parent comments
4
Why the e = exp(1)? Just use exp to do the exponentiation.
e = exp(1)
exp
5 u/jakevdp Aug 29 '13 math.exp can't handle complex numbers. You'd need to use cmath.exp instead. 2 u/isarl Aug 29 '13 So why not use from cmath import exp,pi? 1 u/Antagonist360 Aug 29 '13 Sure that would work. Didn't know about cmath
5
math.exp can't handle complex numbers. You'd need to use cmath.exp instead.
2 u/isarl Aug 29 '13 So why not use from cmath import exp,pi? 1 u/Antagonist360 Aug 29 '13 Sure that would work. Didn't know about cmath
2
So why not use from cmath import exp,pi?
from cmath import exp,pi
1 u/Antagonist360 Aug 29 '13 Sure that would work. Didn't know about cmath
1
Sure that would work. Didn't know about cmath
4
u/minno I <3 duck typing less than I used to, interfaces are nice Aug 29 '13
Why the
e = exp(1)? Just useexpto do the exponentiation.