Check for dimensions
Check for dimensionality in equations
In particular orbital elements, for example:
real ener = 0.5*v.norm()*v.norm - m/d;
the potential is Gm/d
in order to have the same dimensions on the rhs of the equation
Check for dimensionality in equations
In particular orbital elements, for example:
real ener = 0.5*v.norm()*v.norm - m/d;
the potential is Gm/d
in order to have the same dimensions on the rhs of the equation