System Simulation
Find a file
2023-10-21 18:36:56 +02:00
anims sine 2023-10-21 18:36:56 +02:00
libs sine 2023-10-21 18:36:56 +02:00
.gitignore sine 2023-10-21 18:36:56 +02:00
README.md sine 2023-10-21 18:36:56 +02:00
sinus.py sine 2023-10-21 18:36:56 +02:00
sinus_anim.py sine 2023-10-21 18:36:56 +02:00
UNLICENSE sine 2023-10-21 18:36:56 +02:00

System Simulation

Just me playing around with system theory stuff.

Sinus

Animation of a sine wave, with the normed frequency sweeping from 0 to 2pi

Notes:

  • Sine looks fine up to roughly pi/4, which is 1/8th of the sample frequency (8 points per period)
  • At pi/2, we only have the points [0, 1, 0, -1, ...], so exactly 4 points per period. Above pi/2 we have less than 4 points per period, which visually translates to "multiple" sines. Don't know how to call this. It is kinda like there is too little information in the stem plot to really see the high frequency sine, so the brain just sees multiple sines. Still, no aliasing, one could in theory re-construct the original sine.
  • Approaching pi, the effect gets much more noticeable, because the "sines" are low-frequency
  • For frequencies above pi (nyquist), we get mirrored results and aliasing