Skip to content

Files

Latest commit

4997a17 · Jan 24, 2022

History

History
15 lines (9 loc) · 485 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 485 Bytes

Damped Pendulum

A simple damped pendulum in Python. Tested with the Anaconda distribution of Python.

animation.mp4

Usage

To run, use:

$ python pendulum.py

An animation can be created by changing the save variable to True. Since the matplotlib animation seems to be locked to a single thread, saving the animation takes a while. Otherwise, the animation itself is very fast.