Thanks for responding. I only entered those initial values to test that my RK method was working. However, I will have to enter large values of θ, and the small amplitude approximation will no longer be accurate.
I happened to come across the following website...
For my RK method I initialised the variables as follows:
θ = 0.1
ω = 0
dt = 0.04 (time step)
However, I have to investigate the dynamics of the pendulum at progressively larger amplitudes.
1. The problem statement
Hi everyone, I'm currently working on an assignment that involves modelling a non-linear pendulum in C. I have to investigate the dynamics of a simple non-linear pendulum all the way up to a chaotic damped, driven situation. However, I'm completely baffled as to how...