kubic71 / harmonic-sim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Harmonic oscillator simulation

Simulates (dampened) harmonic oscillators we all learned about in highschool physics classes. Namely:

  • weight on a spring
  • pendulum

The deflection is plotted as a function of time.

Setup

pip install -r requirements.txt

Running

$ python simulation.py

Weight on a spring

spring

Pendulum

spring

About


Languages

Language:Python 100.0%