In particular, a symplectic integrator to solve:
$$\ddot{\theta} + \dfrac{g}{l} \sin(\theta) = 0.$$
I'm currently using velocity verlet - by realizing that
$$\ddot{\theta} = -\nabla (-cos(\theta)) = A(\theta(t)),$$
ie. letting $$x = \theta$$
$$v = d \theta/dt$$
$$a = d^2 \theta /dt^2.$$
Is it safe to apply Verlet integration to generalized coordinates? In particular, does this hold true for a generalized coordinate theta:
$$\theta_{t+dt} \approx \theta_t + \dot{\theta}_t dt + \frac{1}{2} \ddot{\theta}_t (dt)^2?$$
