This commit is contained in:
Aidan Sharpe
2024-04-17 18:32:19 -04:00
parent ee11d3f6fe
commit 9aa8810f92
25 changed files with 151 additions and 1 deletions

View File

@ -2,6 +2,16 @@ import numpy as np
import matplotlib.pyplot as plt
N = 8
# Analytic DFT
k = np.arange(N)
W_N = np.exp(-2j*np.pi*k/N)
plt.stem(k, -W_N)
plt.xlabel("$k$")
plt.ylabel("$W_N$")
plt.show()
n = np.arange(N)
x = (-1.0)**n
DFT_8_point = np.fft.fft(x, 8)