Home > Blockchain >  Fast Fourier Transform algorithm wrong by a single minus sign
Fast Fourier Transform algorithm wrong by a single minus sign

Time:10-30

So after watching this video on the fast fourier transform enter image description here

CodePudding user response:

I think the program you're running is executing the inverse FFT. Try omega = cmath.exp((-2 * cmath.pi * 1j)/n). Note the minus sign.

  • Related