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

Functions

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

Function Documentation

◆ compute()

auto astro::delta_t::algo2::compute ( const double year) ->double
nodiscardconstexprnoexcept

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

Parameters
yearThe year, of double type.
Returns
ΔT in seconds.
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
Espenak and Meeus, NASA/TP-2006-214141, Section 2.7, equations (11)-(25). https://ntrs.nasa.gov/citations/20070003587
Note
noexcept: a non-finite year propagates to a non-finite ΔT (#86).
Frozen model; algorithms 3, 4, and 5 delegate to it for years before 2005.