Data Science, Audio, Mathematics, Computer Science, Deep Dives.
for size in array_sizes: random_array = np.random.rand(size) time_simple_dft.append(timeit.timeit(lambda: simple_dft(random_array), number=1)) time_nice_fft.append(timeit.timeit(lambda: nice_fft(random_array), number=1)) # Plotting import matplotlib.pyplot as plt plt.figure(figsize=(10, 6))