Menu

#2484 Incorrect FFT for input of size 2

closed
nobody
Lisp Core (457)
5
2012-10-31
2012-10-29
Joni
No

To reproduce: inverse_fft(fft([1, 0]))
Expected output: [1.0, 0.0]
Actual output: [0.5 %i + 0.5, - 0.5 %i - 0.5]

"fft([1,0])" produces [0.5, 0.5 %i], it probably should be [0.5, 0.5].

Discussion

  • Raymond Toy

    Raymond Toy - 2012-10-30

    Thanks for the report. It's a bug in creation of the sin/cos twiddle table for a 2-point FFT. Will be fixed soon.

     
  • Raymond Toy

    Raymond Toy - 2012-10-31
    • status: open --> closed
     
  • Raymond Toy

    Raymond Toy - 2012-10-31

    Fixed.

     

Log in to post a comment.