Double Pendulum

external-link

Sep 2024

Finished

This project was intended as a one-day coding session to practice Python, Pygame, and NumPy, and ended up with me playing with the results for three days. The chaos generated by a double pendulum system is quite interesting. The math behind it is simple, involving just two (albeit large) equations. The visuals are amazing and, when properly tweaked, can mesmerize you. Simulations can be customized with a few buttons, and if you give it some time, you can modify the code to enhance it further!

Technologies
python

Python

pygame

Pygame

numpy

NumPy

https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (1)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (2)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (3)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (4)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (5)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (6)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (7)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum.gif
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (1)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (2)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (3)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (4)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (5)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (6)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (7)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum.gif
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (1)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (2)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (3)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (4)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (5)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (6)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (7)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum.gif
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (1)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (2)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (3)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (4)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (5)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (6)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum (7)_169.webp
https://raw.githubusercontent.com/MiquelGomezCorral/Double-pendulum/main/readme_images/Pendulum.gif