where M is the mass of the celestial body. When GM is used the center of mass is at the center of M. When bodies cannot accurately be described as point masses in the equations, other math is required and a difference may be required between center of mass and center of gravity. In star systems of more than one planet, a planet orbit differs slightly from ideal with corrections applied for the other planets.