hourAngle function

num hourAngle(
  1. dynamic h,
  2. dynamic phi,
  3. dynamic d
)

Implementation

num hourAngle(h, phi, d) {
  return math.acos((math.sin(h) - math.sin(phi) * math.sin(d)) /
      (math.cos(phi) * math.cos(d)));
}