CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
Loading...
Searching...
No Matches
astro::delta_t::algo3 Namespace Reference

Functions

constexpr auto compute (const double year) -> double
 Compute ΔT for a decimal Gregorian year using algorithm 3.

Variables

constexpr double MAXIMUM_YEAR_EXCLUSIVE

Function Documentation

◆ compute()

auto astro::delta_t::algo3::compute ( const double year) ->double
nodiscardconstexpr

Compute ΔT for a decimal Gregorian year using algorithm 3.

Parameters
yearThe year, of double type.
Returns
ΔT in seconds.
Exceptions
std::invalid_argumentif the year is >= 3000 or not finite.
Example
compute(2005.99999999....) returns ΔT for the last moment of year 2005.
Example
compute(1984.0) returns ΔT for the first moment of year 1984.
See also
Fred Espenak, Thousand Year Canon of Solar Eclipses 1501 to 2500 (2014) - https://www.eclipsewise.com/help/deltatpoly2014.html
Note
Frozen comparison model; uses algo2 before 2005.

Variable Documentation

◆ MAXIMUM_YEAR_EXCLUSIVE

double astro::delta_t::algo3::MAXIMUM_YEAR_EXCLUSIVE
inlineconstexpr