Companion to the lunar-only gist: https://gist.github.com/pukpr/310afd6ad3fbf40df0dd7672341a138d That gist covers the derivation (stroboscopic aliasing, the 432.8 d line, the north/south impulse algebra) and the base model. This one adds the solar annual impulse and combines the two.
Same linearized Euler equation as the lunar-only gist, with pole offset m = m1 + i*m2:
dm/dt = (i*sigma0 - g) m - i*sigma0*psi(t), g = sigma0/(2Q)
