Equation of motion in a rotating frame (source code)

= Equation of motion in a rotating frame

For a frame rotating with constant angular velocity $\boldsymbol\omega$,
$$
\mathbf a_{\rm inertial}
=\ddot{\mathbf x}+2\boldsymbol\omega\times\dot{\mathbf x}
+\boldsymbol\omega\times(\boldsymbol\omega\times\mathbf x).
$$
The extra terms produce the Coriolis and centrifugal forces in the rotating-frame equation.