Made with 3Blue1Brown’s animation engine: manim

The Problem

Given the angles φ₁ and φ₂ as functions of time, we show the positions of point A and B, and also the velocity and acceleration vectors at every point in time. Also, we draw the trajectories of the instantaneous centers of zero velocity and acceleration.
To do this, we use the python library SymPy to differentiate the position vectors of both points. This way, it’s possible to input any two function that are twice differentiable.
SymPy also comes in handy to output our functions as LaTeX so we can show it on the demonstration.
How to Run It
First you’ll need to have manim installed. You can clone into the repository:
|
|
Then, in that directory run:
|
|
Next, in that same directory, clone this repository (or simply copy the file ‘double_pendulum.py’) and execute:
|
|
Change ‘1080’ to whatever resolution you want.