Methodology and Sources
This page documents how our calculators are built, how we test them, and exactly which sources back every number on the site.
How the calculators work
Each calculator uses a published physics or astronomy formula (shown on its own page) together with constants stored in a single source file and reused across every page that needs them — so a constant is only ever defined once. Before publishing, we run an automated test suite that checks each formula against known reference values (for example, 1 AU = 149,597,870.7 km, the speed of light c = 299,792.458 km/s, and standard gravity = 9.80665 m/s²), plus published escape velocities and five known USNO Moon phase dates.
Declared accuracy
Every calculator states its own limitations on its page. The Moon Phase calculator, specifically, uses the mean synodic month (29.530588 days) rather than the Moon's true date-by-date orbit, and we declare a ±2-day margin of error based on our own tests against USNO reference dates.
Primary sources used across this site
- NASA Planetary Fact Sheet — planet mass, radius, gravity and orbital data.
- JPL Solar System Dynamics — the Sun's standard gravitational parameter and orbital mechanics references.
- International Astronomical Union (IAU) — the astronomical unit and light-year definitions.
- NIST Fundamental Physical Constants — the speed of light, the gravitational constant, and standard gravity.
- US Naval Observatory (USNO) — Moon phase reference dates.
- European Space Agency (ESA) — supporting mission and distance references.
- Smithsonian — historical and general astronomy context.
Updates
When a source updates a figure we use, we update the corresponding constant, cite the new access date, and re-run our test suite before republishing.