declination function

num declination(
  1. num l,
  2. num b
)

Implementation

num declination(num l, num b) {
  return math.asin(
      math.sin(b) * math.cos(e) + math.cos(b) * math.sin(e) * math.sin(l));
}