interp10A function

double interp10A(
  1. double jde
)

Interpolated ΔT from Table 10.A, accurate for years 1620–2010.

jde is a Julian Ephemeris Day. Returns ΔT in seconds.

Implementation

double interp10A(double jde) {
  final cal = jdToCalendar(jde);
  final leap = isLeapYearGregorian(cal.year);
  final yl = leap ? 366.0 : 365.0;
  final yf = cal.year +
      dayOfYear(cal.year, cal.month, cal.day.round()) / yl;
  final d3 = Len3.forInterpolateX(yf, _tableYear1, _tableYearN, _table10A);
  return d3.interpolateX(yf);
}