// // main.c // NaiveFFT // // Created by Jacky Jack on 10/08/2021. // #include #include #include #include #include #include #include #include #include "fft.h" //test data array #define DATA_SIZE (8) //double data_i[DATA_SIZE] = {0.0f,1.0f,2.0f,3.0f,4.0f,5.0f,6.0f,7.0f}; //double data_q[DATA_SIZE] = {0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f}; double data_i[DATA_SIZE] = {1.0f,1.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f}; double data_q[DATA_SIZE] = {0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f,0.0f}; int main(int argc, const char * argv[]) { int i; // insert code here... printf("Hello FFT World!\n"); for (i=0;i