Elastic pendulum problem solver

This webpage uses the Runge-Kutta-Fehlberg fourth-order method with fifth-order error checking (RKF45) to approximate the solution to the problem of the elastic pendulum \[ \begin{aligned} \dfrac{d^{2}z}{dt^2} &= (l_0 + z) \dot{\theta}^2 - \dfrac{kz}{m} + g \sin{\theta} \\ \dfrac{d^{2} \theta}{dt^2} &= -\dfrac{g}{l_0 + z} \cos{\theta} - \dfrac{2\dot{z}\dot{\theta}}{l_0 + z}. \end{aligned} \] Where:
Parameter Value Explanation
Problem parameter.
Problem parameter.
Problem parameter.
Problem parameter.
Starting time for the simulation in seconds (s).
End time for the simulation in seconds.
Value of \(z\) at \(t_0\).
Value of \(\dot{z}\) at \(t_0\).
Value of \(\theta\) at \(t_0\).
Value of \(\dot{\theta}\) at \(t_0\).
Absolute error tolerance. Too small of error tolerance can cause the solver to error.
Initial guess for step size.
Minimum limit for step size.
Time for skipping ahead in animation.
Time you want to skip ahead to in the animation.


The buttons below pertain to the animation immediately below them.