Post Reply 
Time of the seasons
02-24-2023, 06:43 PM (This post was last modified: 10-15-2023 02:11 PM by Giuseppe Donnini.)
Post: #6
RE: Time of the seasons
The discrepancy in the last digit between Meeus’ result and yours stems from the fact that you calculated the polynomial directly:

$$
JDE_{0}=\,2\,451\,716.56767 + 365\,241.62603\cdot Y + 0.00325\cdot Y^2 + 0.00888\cdot Y^3 - 0.00030\cdot Y^4
$$

instead of using Horner’s method, as Meeus himself recommends (see the general discussion on pp. 10-11):

$$
\Leftrightarrow \;2\,451\,716.56767 + Y\cdot ( \,365\,241.62603 + Y\cdot ( \,0.00325 + Y\cdot ( \,0.00888 - Y\cdot 0.00030\,) \,) \,)
$$

In general, the latter is both faster and – most importantly – more accurate:

  1. If n is the degree of the polynomial, direct evaluation would require n(n+1)/2 multiplications, while Horner’s method only requires n. The larger n, the larger the speed gain.
     
  2. Fewer operations automatically translate into less accumulation of roundoff errors.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Time of the seasons - cdeaglejr - 09-22-2022, 06:25 PM
RE: Time of the seasons - Gil - 02-19-2023, 12:43 AM
RE: Time of the seasons - cdeaglejr - 02-24-2023, 10:36 AM
RE: Time of the seasons - Gil - 02-24-2023, 12:02 PM
RE: Time of the seasons - Gil - 02-24-2023, 12:13 PM
RE: Time of the seasons - Giuseppe Donnini - 02-24-2023 06:43 PM
RE: Time of the seasons - Gil - 02-24-2023, 09:57 PM



User(s) browsing this thread: 1 Guest(s)