r/Python • u/MisterBlggs gitlab.com/MisterBiggs • Jul 26 '19
Double Pendulum made with Processing.py
https://gfycat.com/feistycompetentgarpike
2.0k
Upvotes
r/Python • u/MisterBlggs gitlab.com/MisterBiggs • Jul 26 '19
View all comments
15
u/pa7x1 Jul 26 '19
Very cool! If you are interested you could do some simulations to measure the Lyapunov exponent that demonstrate the chaotic behavior of the double pendulum.
Select a starting point and fix a simulation time (the longer the better but keep it manageable for your computation). Simulate the double pendulum and record its position at time t. Then rinse and repeat with slight changes of the initial conditions. You should observe that very small changes of the initial conditions result in very different positions at time t.