Skip to content

AlexR055/Double-Pendulum-Simulation-RK4-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Double-Pendulum-Simulation-RK4-

Contains a simulation for a double pendulum using the Runge-Kutta 4th order method.

This simulation works by first gathering user input for constants such as rod length and pendulum mass. Next, the derivatives function calculates the equations of motion based on the current state of the system. The motion of the double pendulum is governed by non-linear differential equations. These equations describe how the angles and angular velocities of the rods evolve over time. Then, the Runge-Kutta 4th order method is used. The Runge-Kutta 4th order method is a numerical technique that that integrates differential equations over small, discrete time steps. The rk4 function iterates over the equations of motion using this method to plot the motion of the pendulum over time.

Feel free to use this simulation in order to learn and visualize a double pendulum, but please contact me if you intend to use it any other way.

About

Contains a simulation for a double pendulum using the Runge-Kutta 4th order method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages