The butterfly
You will learn
How a radix-2 FFT breaks a DFT into stages of butterflies, and what that saves.
A butterfly takes a and b, multiplies b by a twiddle W and outputs a + Wb and a - Wb. A radix-2 FFT of N points is log2 N stages of N/2 of them: 3 stages of 4 butterflies at 8 points, 5120 butterflies at 1024 points against 1048576 multiplies for a direct DFT. The widget runs the integer FFT of the spec and shows every value: one cycle of cosine at 8 points comes out at 509 in bins 1 and 7. The spec signals.t27 computes every butterfly.