Here is a way to model the double pendulum. Instead of finding the equations of motion, I can replace the strings with springs.
Here is the code.
[ Ссылка ]
Here is the derivation of the equations of motion using the Lagrangian
[ Ссылка ]
Here is how to model the Lagrangian version with python
[ Ссылка ]
Ещё видео!