rlm@8: #include rlm@8: #include rlm@8: #include rlm@8: rlm@8: rlm@8: int DFT(int dir,int m,double *x1,double *y1) rlm@8: { rlm@8: long i,k; rlm@8: double arg; rlm@8: double cosarg,sinarg; rlm@8: double *x2=NULL,*y2=NULL; rlm@8: rlm@8: x2 = (double *)(malloc(m*sizeof(double))); rlm@8: y2 = (double *)(malloc(m*sizeof(double))); rlm@8: if (x2 == NULL || y2 == NULL) rlm@8: return 0; rlm@8: rlm@8: for (i=0;i