JuliaSpaceMissionDesign / Ephemerides.jl

A Modern Binary Ephemeris Reader for Julia, in Julia.
https://juliaspacemissiondesign.github.io/Ephemerides.jl/
MIT License
22 stars 1 forks source link

Small loss of accuracy in Chebyshev interpolation #13

Open MicheleCeresoli opened 11 months ago

MicheleCeresoli commented 11 months ago

Starting from the highest Chebyshev coefficients and moving to the lowest improves the accuracy because adding from biggest to smallest floating-point numbers is less accurate than adding from smallest to biggest?. Implementing it however, would require an extra for-loop on every interpolation, is it worth the extra time?

See the MWE in issue #10.