r/Python • gitlab.com/MisterBiggs • Jul 26 '19

Double Pendulum made with Processing.py

https://gfycat.com/feistycompetentgarpike
2.0k Upvotes

89 comments sorted by

View all comments

1

u/-walter-sobchak- Jul 26 '19

Why doesn’t it ever come to rest?

2

u/MisterBlggs gitlab.com/MisterBiggs Jul 26 '19

This is using code to simulate the double pendulum with gravity. It doesn't account for any air resistance or anything like that so the system never loses energy.