0
$\begingroup$

I'm reading the book "Practical Astronomy with your Calculator or Spreadsheet 4th Edition" implementing its formulas with C++.

Now, I have implemented formula 47 "Calculating orbits more precisely".

I get, with my implementation, that the right ascension and declination of the Sun on Greenwich date 10 March 1986 at 0 h UT is:

  • right ascension: 23h 20m 1.73s = 350.007226656 = 23.333815110378847
  • declination: -04º 18' 9.83" = -4.3027310799565921

I have checked it with two calculators:

In the Sun Ephemeris Calculator the values are:

  • right ascension: 23h 19m 59.56s = 349.9981665°
  • declination: -04° 18' 25.97" = -4.307214°

And in the Sun & Moon Position Calculator, the values are:

  • right ascension: 23h 20m 1.6s = 350.007°
  • declination: -04° 18' 10.8" = -4.303

All of them are different.

Do I have to be worried about it?

$\endgroup$
1
  • 1
    $\begingroup$ You can check your calculations against the Jet Propulsion Laboratory Development Ephemeris. You can access (a lot of) that data via the Horizons website. It's not hard to write code that accesses Horizons, but it's simpler to just use the web interface & copy the results to your own machine. $\endgroup$
    – PM 2Ring
    Jun 26, 2021 at 18:15

1 Answer 1

1
$\begingroup$

These look good. The differences are of the order of arc-seconds, which is very small. I'm impressed that a simple algorithm that can be implemented with a spreadsheet can achieve arc-second accuracy.

So the algorithms seem to be calculating the same thing. But apparently, slightly different algorithms have been used (or slightly different values have been fed to the algorithm). If your worry is that you have done something wrong, then "no" you don't need to be worried. If you need sub-arc-second accuracy on the position of the sun, then perhaps you need to investigate the assumption in the algorithms used.

$\endgroup$
3
  • $\begingroup$ Thanks for your answer. I've been looking for other algorithms to compare with mine (well, the one in the book) but I haven't found any. Do you know if there any other algorithms available on the Internet to compare? Thanks. $\endgroup$
    – VansFannel
    Jun 26, 2021 at 17:59
  • $\begingroup$ I don't know that. $\endgroup$
    – James K
    Jun 26, 2021 at 18:13
  • 1
    $\begingroup$ @VansFannel Duffett-Smith is pretty popular, but some of his numbers are slightly off (IMHO), but I've only seen his formulas online, not in a printed book, and those sources may be from old editions. Another option is Jean Meuss. See an example here that uses a combination of things from Meuss and the USNO. $\endgroup$
    – PM 2Ring
    Jun 26, 2021 at 18:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .