Skip to content

Instantly share code, notes, and snippets.

@SchofieChen
SchofieChen / example.txt
Created December 16, 2020 16:20 — forked from endolith/example.txt
Parseval's theorem Python NumPy example
In [1]: n = 10000000
In [2]: x = rand(n)
In [3]: X = fft(x)
In [4]: rms_flat(x)
Out[4]: 0.57731639149367697
In [5]: rms_flat(ifft(X))