Documentation
¶
Overview ¶
Apsis: Chapter 50, Perigee and apogee of the Moon
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apogee ¶
Apogee returns the jde of apogee of the Moon nearest the given date. 远地点
Year is a decimal year specifying a date.
Example ¶
// Example 50.a, p. 357.
j := apsis.Apogee(1988.75)
fmt.Printf("JDE = %.4f\n", j)
y, m, d := julian.JDToCalendar(j)
d, f := math.Modf(d)
fmt.Printf("%d %s %d, at %m TD\n", y, time.Month(m), int(d),
sexa.FmtTime(unit.TimeFromDay(f)))
Output: JDE = 2447442.3543 1988 October 7, at 20ʰ30ᵐ TD
func ApogeeParallax ¶
ApogeeParallax returns equatorial horizontal parallax of the Moon at the Apogee nearest the given date.
Year is a decimal year specifying a date.
Example ¶
// Example 50.a, p. 357.
p := apsis.ApogeeParallax(1988.75)
fmt.Printf("%.3f\n", p.Sec())
fmt.Printf("%0.3d\n", sexa.FmtAngle(p))
Output: 3240.679 54′00″.679
func MeanApogee ¶
MeanApogee returns the jde of the mean apogee of the Moon nearest the given date. 平远地点
Year is a decimal year specifying a date.
Example ¶
package main
import (
"fmt"
"github.com/mooncaker816/learnmeeus/v3/apsis"
)
func main() {
// Example 50.a, p. 357.
fmt.Printf("JDE = %.4f\n", apsis.MeanApogee(1988.75))
}
Output: JDE = 2447442.8191
func MeanPerigee ¶
MeanPerigee returns the jde of the mean perigee of the Moon nearest the given date. 平近地点
Year is a decimal year specifying a date.
func Perigee ¶
Perigee returns the jde of perigee of the Moon nearest the given date. 近地点
Year is a decimal year specifying a date.
func PerigeeParallax ¶
PerigeeParallax returns equatorial horizontal parallax of the Moon at the Perigee nearest the given date.
Year is a decimal year specifying a date.
Types ¶
This section is empty.