func ExampleReduceB1950FK4ToJ2000FK5() { // Example 24.c, p. 162. ele := &elementequinox.Elements{ Inc: unit.AngleFromDeg(11.93911), Node: unit.AngleFromDeg(334.04096), Peri: unit.AngleFromDeg(186.24444), } elementequinox.ReduceB1950FK4ToJ2000FK5(ele, ele) fmt.Printf("i %.5f\n", ele.Inc.Deg()) fmt.Printf("Ω %.5f\n", ele.Node.Deg()) fmt.Printf("ω %.5f\n", ele.Peri.Deg()) // Output: // i 11.94521 // Ω 334.75043 // ω 186.23327 }
func ExampleReduceB1950FK4ToJ2000FK5() { // Example 24.c, p. 162. ele := &elementequinox.Elements{ Inc: 11.93911 * math.Pi / 180, Node: 334.04096 * math.Pi / 180, Peri: 186.24444 * math.Pi / 180, } elementequinox.ReduceB1950FK4ToJ2000FK5(ele, ele) fmt.Printf("i %.5f\n", ele.Inc*180/math.Pi) fmt.Printf("Ω %.5f\n", ele.Node*180/math.Pi) fmt.Printf("ω %.5f\n", ele.Peri*180/math.Pi) // Output: // i 11.94521 // Ω 334.75043 // ω 186.23327 }