Skip to content

Instantly share code, notes, and snippets.

View SchofieChen's full-sized avatar
🎯
Focusing

SchofieChen

🎯
Focusing
View GitHub Profile
@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))