janrg / MeeusSunMoon

JavaScript module to calculate times for sunrise, solar noon, and sunset, as well as moon phases based on "Astronomical Algorithms" by Jean Meeus
MIT License
31 stars 9 forks source link

Potential Error for the New Moon Calculation #43

Open Yimashenka opened 1 year ago

Yimashenka commented 1 year ago

Hi !

First of all, amazing job !

I first tried to develop this algorithm on my own, but I did not find the same JDE as mentionned in the book for the new moon of 1977. And when I tried with yours, it's the same error.

With your code, we get : JDE = 244 3192.9410204203 (for k = -283, get from the book p.253) But the book gives : 2443 192.65118

All value are good, until we reach the planetary correction and the global corrections. I totaly agree with your formulas, as I code the same... Did you have any clues about that ?

Thank you a lot !