NbodyGradient.jl icon indicating copy to clipboard operation
NbodyGradient.jl copied to clipboard

Factor out a squared term in this expression

Open ericagol opened this issue 3 years ago • 0 comments

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.

ericagol avatar May 12 '21 02:05 ericagol