ericagol / NbodyGradient.jl

N-body integrator computes derivatives with respect to initial conditions for TTVs, RV, Photodynamics & more
MIT License
20 stars 9 forks source link

Factor out a squared term in this expression #63

Open ericagol opened 3 years ago

ericagol commented 3 years ago

https://github.com/ericagol/NbodyGradient.jl/blob/685014cfa11f9876c498d1e6e17b1be050ba4932/src/integrator/ahl21/ahl21.jl#L1238-L1240

Can write -\beta(G_2\eta+G_1r_0)^2 to simplify three terms.