Hacker News new | ask | show | jobs
by zokier 701 days ago
> but note that it is only so accurate for each quarter phase

So it's not actually comparable at all?

2 comments

thats a fair cop

tbh the small error can be very easily fixed. its close to the difference between a sine wave and its linear piecewise approximation from tip to tip, hence the very high accuracy on the quarters

you could go even further and remove the error from path being nearly a precessing ellipse...

in both cases what you will get is nothing that you would detect by eye or even with a telescope.

for the stated purpose this algorithm does fine in almost every use case including astronomical ones.

i did a quick code review. this mountain of code has the same error and the same precision with identifying phases.