rodluger / Limbdark.jl

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

Pre-computing coefficients for series solutions #49

Closed ericagol closed 5 years ago

ericagol commented 6 years ago

@rodluger I'm thinking of pre-computing the coefficients of the series expressions for J_v and I_v, and their derivatives. The problem is that if I run the code in double precision or BigFloat precision, I'm going to require a different set of coefficients. I suppose I could include this in the structure, but I wanted to see first how you dealt with this issue.

ericagol commented 5 years ago

@rodluger I've added this to the transit structure, and to the routine transit_init. The tests seem to pass. I've added back in a more comprehensive and efficient test_IJv_derivative.jl.