Theory of the rotation of the earth around its center of mass