Modeling the Double Pendulum with Python and sympy

preview_player
Показать описание
Here is how to find the second order differential equations using sympy for a double pendulum.

python code for the 3d model:

Solving the double pendulum by hand

00:00 - Intro
02:35 - Finding Cartesian coordinates
05:40 - Using sympy
21:38 - Numerical Calculations
24:07 - 3d model
Рекомендации по теме
Комментарии
Автор

That is really cool.
About 2 months ago I made a model of a Japanese style wind chime, and while making it I was like whoa .. this is a double pendulum.
I did the simulation animation part in Unity using spring joints and simulated wind applying a force .. after tuning it it looked pretty amazing and very realistic.
Awesome to see the python simulation!

ericpug
Автор

21:13 "It's dumb, it's childish" My first thought was "it's inefficient" but my second thought was "it's an opportunity".

I always wanted to learn tools like grep, sed and awk but I never had the motivation. Now I see this opportunity to learn those tools. What I might try over the christmas break when I'm bored is to export the solution into a text file and see if I can get grep, sed and whatever it takes to do the search and replace automatically. It won't be efficient but it'll keep me busy for at least an afternoon 😆

marcrindermann