HP Prime Forum
coordinates of the sun - Printable Version

+- HP Prime Forum (http://forum.hp-prime.de)
+-- Forum: HP Prime (/forumdisplay.php?fid=1)
+--- Forum: Software (/forumdisplay.php?fid=4)
+--- Thread: coordinates of the sun (/showthread.php?tid=82)



coordinates of the sun - cdeaglejr - 12-03-2016 08:33 PM

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