You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that the radial coordinate is computed using sqrt(x[1]*x[1] + x[2]*x[2]). This could potentially overflow in some cases. Do you think the use of hypot(x[1],x[2]) would be better? The drawback would be that the code is more complex and thus could be a bit slower.
If you agree with the use of hypot, I can make a PR.
The text was updated successfully, but these errors were encountered:
I see that the radial coordinate is computed using
sqrt(x[1]*x[1] + x[2]*x[2])
. This could potentially overflow in some cases. Do you think the use ofhypot(x[1],x[2])
would be better? The drawback would be that the code is more complex and thus could be a bit slower.If you agree with the use of
hypot
, I can make a PR.The text was updated successfully, but these errors were encountered: