rodluger / Limbdark.jl

Analytical transit light curves for limb darkened stars
MIT License
14 stars 4 forks source link

Further accuracy by switching basis from `s_n` to `M_n`? #86

Closed ericagol closed 5 years ago

ericagol commented 5 years ago
ericagol commented 5 years ago

I think that the inaccuracy at large values of n_u occurs due to odd and even terms nearly cancelling (to a part in 10^{13} in the case of n_u=50 and u_i = 1/n_u). So, if we added up the coefficients of these terms at higher precision, perhaps the result would be more numerically stable. We would still get a cancellation between the odd and even terms, but the sums would only cancel once at lower precision (assuming we compute M_n at double precision).

ericagol commented 5 years ago

I'm not sure if this is going to work; will close this issue for now.