Share your repls and programming experiences

← Back to all posts
Fourth Order Runge Kutta for simplified simple pendulum ODE
Cardano (0)

Solves the simplified second order differential equation of a simple pendulum using fourth order Runge Kutta method. However, the code can be modified to solve any given second order ODE, just by changing the two method classes to the system of first order ODE obtained in the first step of solving Runge Kutta.