Documente Academic
Documente Profesional
Documente Cultură
Let’s calculate the Discrete Fourier Transform (DFT) of the sequence ~s = h1, 2, 3, 4, 5, 6, 7, 8i
using the Fast Fourier Transform (FFT).
(Remember, the FFT is just a fast algorithm for computing the DFT, it is not
a transform, just a method for computing the DFT efficiently!)
The associated polynomial is
√ √ √ √
2 2 2 2
ω80 = 1; ω81 = + ı̇ ; ω82 = ı̇; ω83 = − + ı̇ ;
2 2 2 2
√ √ √ √
2 2 2 2
ω84 = −1; 5
ω8 = − − ı̇ ; ω86 = − ı̇; 7
ω8 = − ı̇ ;
2 2 2 2
see Figure 1:
Figure 1.
Also,
= (1 + 3y + 5y 2 + 7y 3 ) + x(2 + 4y + 6y 2 + 8y 3 ).
We now let
Pe (y) = 1 + 3y + 5y 2 + 7y 3 ; Po (y) = 2 + 4y + 6y 2 + 8y 3 ;
We now let:
Note that, as powers of ωn rotate once around the circle, the powers of the squares
n
ωn2 = ω n2 rotate twice through only 2
many distinct values; for example, for n=8, using
the cancelation Lemma, i.e., (ωnk )2 = ω kn we get:
2
3
k k k k k k k k
k k k k k k k k
Thus, if
n
and P (x) is of degree n − 1, then for k = 0 to −1
2
n
+k 2
(2) P e ((ωnk )2 ) = P e (ω kn ) and also P e ((ωn2 ) ) = P e (ω kn );
2 2
n
+k
(3) P o ((ωnk )2 ) = P o (ω kn ) and also P o ((ωn2
)2 ) = P o (ω kn );
2 2
n n
+k
(4) ωn 2
= ωn ωnk
2
= −ωnk .
Consequently, from (1)–(3) we have the following recursion for every n of the form
n = 2m :
if
• ~s = hs0 , s1 , s2 , s3 , . . . , sn i;
• s~e = hs0 , s2 , s4 , . . . , sn i and s~o = hs1 , s3 , s5 , . . . , sn−1 i
(note: both of these sequences are of length n/2)
and if
• DF T (~s) = hf0 , f1 , f2 , f3 , . . . fn i
• DF T (s~e ) = hf0e , f1e , . . . , f ne i and DF T (s~o ) = hf0o , f1o , . . . , f no i;
2 2
4
n
then for all 0 ≤ k ≤ 2
− 1 we have
We now compute
DF T (h1, 5i) = hPee (ω20 ), Pee (ω21 )i = hPee (1), Pee (−1)i
DF T (h3, 7i) = hPeo (ω20 ), Peo (ω21 )i = hPeo (1), Peo (−1)i
DF T (h2, 6i) = hPoe (ω20 ), Poe (ω21 )i = hPoe (1), Poe (−1)i
DF T (h4, 8i) = hPoo (ω20 ), Poo (ω21 )i = hPoo (1), Poo (−1)i
DF T (h1, 3, 5, 7i) = h6 + ω40 · 10, −4 + ω41 (−4), 6 − ω40 · 10, −4 − ω41 (−4)i
DF T (h2, 4, 6, 8i) = h8 + ω40 · 12, −4 + ω41 (−4), 8 − ω40 · 12, −4 − ω41 (−4)i
DF T (h1, 2, 3, 4, 5, 6, 7, 8i) = h16 + ω80 · 20, −4 − 4 ı̇ +ω81 (−4 − 4 ı̇), −4 + ω82 · (−4), −4 + 4 ı̇ +ω83 (−4 + 4 ı̇),
16 − ω80 · 20, −4 − 4 ı̇ −ω81 (−4 − 4 ı̇), −4 − ω82 · (−4), −4 + 4 ı̇ −ω83 (−4 + 4 ı̇)i
5
* √ √ ! √ √ !
2 2 2 2
= 16 + 1 · 20, −4 − 4 ı̇ + + ı̇ (−4 − 4 ı̇), −4 + ı̇ ·(−4), −4 + 4 ı̇ + − + ı̇ (−4 + 4 ı̇),
2 2 2 2
√ √ ! √ √ ! +
2 2 2 2
16 − 1 · 20, −4 − 4 ı̇ − + ı̇ (−4 − 4 ı̇), −4 − ı̇ ·(−4), −4 + 4 ı̇ − − + ı̇ (−4 + 4 ı̇)
2 2 2 2
√ √ √ √
= h36, −4 − 4 ı̇(1 + 2), −4 − 4 ı̇, −4 + 4 ı̇(1 − 2), −4, −4 − 4 ı̇(1 − 2), −4 + 4 ı̇, −4 + 4 ı̇(1 + 2)i
Another example
Substituting y = x2 we get
Q(x) = 1 + 4y + 2y 2 + 6y 3 + x(8 + 3y + 5y 2 + 7y 3 ).
We let
Qe (y) = 1 + 4y + 2y 2 + 6y 3 ; Qo (y) = 8 + 3y + 5y 2 + 7y 3 ;
We let
We now have:
DF T (h1, 2i) = hQee (ω20 ), Qee (ω2 )i = hQee (1), Qee (−1)i = h3, −1i;
DF T (h4, 6i) = hQeo (ω20 ), Qeo (ω2 )i = hQeo (1), Qeo (−1)i = h10, −2i;
DF T (h8, 5i) = hQoe (ω20 ), Qoe (ω2 )i = hQee (1), Qee (−1)i = h13, 3i;
DF T (h3, 7i) = hQoo (ω20 ), Qoo (ω2 )i = hQee (1), Qee (−1)i = h10, −4i.
DF T (h1, 4, 2, 6i) = h3 + ω40 · 10, −1 + ω41 (−2), 3 − ω40 · 10, −1 − ω41 (−2)i
DF T (h8, 3, 5, 7i) = h13 + ω40 · 10, 3 + ω41 (−4), 13 − ω40 · 10, 3 − ω41 (−4)i
DF T (h1, 8, 4, 3, 2, 5, 6, 7i) = h13 + ω80 · 23, −1 − 2 ı̇ +ω81 (3 − 4 ı̇), −7 + ω82 · 3, −1 + 2 ı̇ +ω83 (3 + 4 ı̇),