Skip to content

Instantly share code, notes, and snippets.

@Wasabules
Last active May 10, 2021 22:23
Show Gist options
  • Save Wasabules/8441251ab13854c7854e9e26a2d1f5b3 to your computer and use it in GitHub Desktop.
Save Wasabules/8441251ab13854c7854e9e26a2d1f5b3 to your computer and use it in GitHub Desktop.
fourier
from math import *
FFT = a0 + somme(an*cos(nwt)+bn*sin(nwt))
paire: bn=0
impaire: an=0 a0=0
An=2/T integrale(f(t)*cos(nwt)dt)
Bn=2/T integrale(f(t)*sin(nwt)dt)
paire:
An=4/T integrale(f(t)*cos(nwt)dt)
[t1 ; t1+T/2]
impaire:
Bn=4/T integrale(f(t)*sin(nwt)dt)
[t1 ; t1+T/2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment