aboutsummaryrefslogtreecommitdiffstats
path: root/Project/TestCode/dft.c
diff options
context:
space:
mode:
Diffstat (limited to 'Project/TestCode/dft.c')
-rw-r--r--Project/TestCode/dft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Project/TestCode/dft.c b/Project/TestCode/dft.c
index d0dca12..6512c4a 100644
--- a/Project/TestCode/dft.c
+++ b/Project/TestCode/dft.c
@@ -41,7 +41,7 @@ void idft(int N, Complex *X) {
for(k = 0; k < N; ++k) {
X[n].r += x[k].r * cos(2 * E_PI * k * n / N) - x[k].i * sin(2 * E_PI * k * n / N);
}
- X[n] /= N;
+ X[n].r /= N;
}
}