-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
atan2
as 2-arg method of atan
#27248
Comments
We could at least allow |
The convention is cemented enough that it has its own wikipedia entry under https://en.wikipedia.org/wiki/Atan2. The discoverability factor there might be a point in favor of keeping the current name. |
I would favor keeping two-argument |
I'm just bikeshedding here, but I don't think the proposed change renders a benefit that outweighs the detriment of exporting multiple names for the same operation. My preference is just to keep |
I would begin arguing along the same lines as Jarrett, but instead conclude that discarding the relic of past programming languages' constraints that is |
Should
atan2
become a 2-argument method ofatan
?The main argument against would be convention:
atan2
is well-established, going back at least to Fortran IV (1961).The only languages I have found that do combine them are Mathematica
ArcTan
and Common Lispatan
.The text was updated successfully, but these errors were encountered: