centuriesSinceJ2000 function

double centuriesSinceJ2000(
  1. double jd
)

Julian centuries since J2000 for Julian day jd – the time argument t of the precession and nutation functions (IAU 2006 precession, IAU 2000A nutation with R06 adjustments, IERS Conventions 2010, chapter 5). Pass a TT Julian day.

Implementation

double centuriesSinceJ2000(double jd) => (jd - j2000) / daysPerJulianCentury;