Cooley-Tukey Fast Fourier Transform algorithm
A Cooley-Tukey fast fourier transform algorithm which instead of calling a function recursively, calls itself (forks, executes itself and pipes input and output)
Remove all executables and object files with:
$ make all
$ make clean
$ cat sine.txt
0.000000
0.707107
1.000000
0.707107
0.000000
-0.707107
-1.000000
-0.707107
$ ./forkFFT < sine.txt
0.000000 0.000000*i
0.000000 -4.000001*i
0.000000 0.000000*i
0.000000 -0.000001*i
0.000000 0.000000*i
-0.000000 0.000001*i
0.000000 0.000000*i
-0.000000 4.000001*i
$ ./forkFFT
REALTERM IMAGTERM*i
...
...
$ ./forkFFT
0.000000 -1.000000*i
0.400000 -0.2000001*i