mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-04-04 23:04:36 -04:00
Now the C version of Astronomy Engine is using the TOP2013 model of Pluto instead of resampled Chebyshev polynomials. I added temporary hacks to ignore differences for Pluto between C output and output from Python, JavaScript, and C#. I will remove these after all four languages are using TOP2013. See the variable ToleratePlutoErrors in ctest.c. ctest.c DiffLine function now understands that longitude-like angles (right ascension and azimuth) can wrap around, and to tolerate very small angular differences that happen to straddle the wraparound value. I should have done this a long time ago, but it never caused problems before now. C PlanetApsis has a serious problem with Pluto that I didn't expect. I need to investigate and understand this before porting to other languages. For now, I hack around it using ToleratePlutoErrors.