0

Hi,

im trying to calculATE DFT through this code, i dnt know what's wrong please enlighten. Thanks

```
#include<conio.h>
#include <math.h>
#include <complex.h>
main()
{
int m,n,r,N,j;
float l,o;
float complex x[1000];
float real, imag;
{
for (m=1;m<=10;m++)
{
for (n=1;n<=10;n++)
{
for (j=1; j<=10;j++)
N=1000;
r=1/N;
l=sin(3*j);
printf("the value of sin is %f",l);
o=exp(6.28*m*n*r);
x[m]=0.0+I*o*l;
//real=creal(x[m]);
//imag=cimag(x[m]);
printf("the val of x[m] is %f", x[m]);
}
}
}
getch();
}
```