Example #1
0
func ExampleLimb() {
	// Example 48.a, p. 347.
	const p = math.Pi / 180
	χ := base.Limb(134.6885*p, 13.7684*p, 20.6579*p, 8.6964*p)
	fmt.Printf("χ = %.1f\n", χ/p)
	// Output:
	// χ = 285.0
}
Example #2
0
func ExampleLimb() {
	// Example 48.a, p. 347.
	χ := base.Limb(
		unit.RAFromDeg(134.6885),
		unit.AngleFromDeg(13.7684),
		unit.RAFromDeg(20.6579),
		unit.AngleFromDeg(8.6964))
	fmt.Printf("χ = %.1f\n", χ.Deg())
	// Output:
	// χ = 285.0
}