Skip to content

Instantly share code, notes, and snippets.

@GG23800
GG23800 / fft.c
Created December 23, 2015 11:06
fast fourier transform algorithm
#include <stdio.h>
#include <math.h>
#include <complex.h>
#include "Cfft.h"
const double PI = 3.141592653589793238460;
typedef double complex cplx;
void _fft(cplx buf[], cplx out[], int n, int step)
{
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "rp.h"
#define Istrue(e) ((e) != 0) //Helper function. Int > 0 is true, else == 0 is false
int main(int argc, char **argv){
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include <rp.h>
int main(int argc, char **argv){
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "rp.h"
int main(int argc, char **argv){
/*number of acquision*/