/*--------------------------------------------------------------------------------
パーセバルの定理
Parseval's theorem
parseval.h
*--------------------------------------------------------------------------------*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <malloc.h>
typedef struct
{
double real; // 実部, real part
double imag; // 虚部, imaginary part
} complex;
extern complex *readdata( int *num );
extern void fourier( int num, complex *x, complex *F );
extern void inv_fourier( int num, complex *x, complex *F );