HP Prime Forum

Full Version: coordinates of the sun
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This HP Prime computer program, demo_sun1, calculates the geocentric coordinates of the sun for a julian date provided by the user. It demonstrates how to interact with a routine called sun1 which performs the calculations.

Here's the program output for a typical example.

March 9, 2016

solar right ascension = 349.753879691 degrees

solar declination = −4.40887923376 degrees

solar eci position vector and magnitude (km)

r_x = 145728172.508
r_y = −26341756.0806
r_z = −11417974.8714

rmag = 148529318.742
Reference URL's