apparent function

double apparent(
  1. double jd
)

Apparent sidereal time at Greenwich for a given JD, in seconds.

Corrects mean sidereal time for nutation. Range [0, 86400).

Implementation

double apparent(double jd) {
  final s = mean(jd);
  final n = nut.nutation(jd);
  final eps = nut.meanObliquity(jd) + n.dEps;
  final eq = n.dPsi * math.cos(eps) * 180 / math.pi * 240;
  return _mod86400(s + eq);
}