Double pendulum

Extensive numerical simulation of the double pendulum
363 Downloads
Updated 1 Jun 2019

Extensive numerical simulation of the double pendulum

Functionnalities :
- Tweaking of all parameters (masses, lengths, inital angles and speeds)
- Animation: Solving non-linear equations (ODE45, Newmark+Newton-Raphson)
- Animation: 2 non-linear pendulum released with 0.1° difference of inital angle
- Graph: Phase portait and Poincaré map
- Graph: Energy of the system vs. time
- Graph: Bifurcation diagram
- Animation: Solving linear equations of the double-pendulum (ODE45, Verlet, analytical solutions)
- Animation: Comparison of linear vs. non-linear pendulums
- Graph: (SSE between linear & non-linear solutions) vs. initial angle
- and more...

I didn't have time to test any compatibility between platforms or Matlab versions.
This project was made with R2017b on Windows 10.

Cite As

Gabriel Forien (2025). Double pendulum (https://github.com/gforien/double-pendulum), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2017b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Classical Mechanics in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
2.1.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.