Modeling a Double Pendulum with Python

Here is part II of my double pendulum video. In the first part, I derive the differential equations of motion for a double pendulum with Lagrangian mechanics. Here's the video:    • Equations of motion for a double pendulum   In this video, I use the equations of motion and the Euler method of numerical calculations to create a 3d model in WebVPython. Here is the code for this model. https://trinket.io/glowscript/7069d44ff5