main.py
N = 2 # , The number of consecutives penduliums
T = 10 #s, The duration of the simulation
FPS = 25 # , The number of fram per seconds
SAVE_ANIM = True # , Do we export an .mp4 animation of the dynamic
The Lagrangian of the systeme is the following:
Therefor, it's dynamic is the following:
Now, it's possible to calculate the motion of the pendulum given this set of equations.