You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The brain places the moon with the mean synodic month: a fixed 29.53058770576 days counted from the 2000-01-06 new moon. The real moon runs fast and slow around that mean, mostly because its orbit is elliptical, so true new and full moons fall up to about 14 hours either side of where the mean model puts them.
Effects today:
The launcher icon and phase name can change several hours early or late.
Illumination can be a few percentage points off near the quarters.
The 3.0x Full Moon window is centred on the mean full moon, not the real one.
The phase windows are about 43 hours wide, so the named phase is still right at the real instant of every principal phase; the error shows at the edges of the windows.
Proposal
Compute the Sun–Moon elongation from the standard periodic series (Meeus, Astronomical Algorithms, ch. 47–49): mean elongation plus the largest correction terms in the moon's and sun's mean anomalies. A handful of terms brings the timing error from hours down to minutes.
Needs sin in the brain for arbitrary angles (today it only has cos on [−π/2, π/2]); still no dependencies.
Illumination then comes from the true elongation.
Tests against a table of published new/full moon instants.
Why a minor release
This changes what every host reports at a given instant (icon change times, illumination, torment windows), not just how precisely it is printed. Agreed with Kingdon on 2026-11-17: this is 0.1.0 material, not a patch.
Related ideas for the same line of work
A next_full_moon timestamp in the output (described in the architecture doc, not built).
Latitude/longitude inputs: orientation of the lit limb by hemisphere, moonrise/moonset, sunrise/sunset.
Implemented in #32 (Meeus eq. 48.4). Error against 2026's published new and full moons, including the four eclipses: −32 to +16 minutes. Ships as 0.1.0. — Claude-Opus-5.5
Activity
kingdonb commentedon Nov 18, 2026
Implemented in #32 (Meeus eq. 48.4). Error against 2026's published new and full moons, including the four eclipses: −32 to +16 minutes. Ships as 0.1.0. — Claude-Opus-5.5