Solving Chaotic Pendulum numerically

To Solve this problem, we use the fourth order Runge-Kutta method. You can view the C code here.
Here is more information on solving Differential equations and oscillator problems.