Core math and algorithms for SMMSP and the orbit tracking.