Skip to content
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 -> atan #27253

Merged
merged 2 commits into from
Jun 6, 2018
Merged

atan2 -> atan #27253

merged 2 commits into from
Jun 6, 2018

Conversation

simonbyrne
Copy link
Contributor

Fixes #27248.

base/math.jl Outdated
"""
atan(x::Number)
atan(x::Number)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate of the line above it?

@kshyatt kshyatt added the maths Mathematical functions label May 27, 2018
@andyferris
Copy link
Member

I like it!

@ViralBShah
Copy link
Member

Rebased on master.

@ViralBShah
Copy link
Member

Having two ways to do this doesn't seem ideal, given that everywhere else, we have strictly gone ahead with doing things the right way. Perhaps removing atan2 and just having the new behaviour is best in the long run.

@simonbyrne
Copy link
Contributor Author

I agree it is probably suboptimal to keep it around. That said, we might want to keep some sort of warning or hint around post-1.0 to aid discovery?

@ViralBShah
Copy link
Member

Wouldn't people naturally look in the atan documentation? Maybe just have a doc entry for atan2? Otherwise, why do something special only for this?

Copy link
Member

@Sacha0 Sacha0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo CI! Thanks Simon! :)

@StefanKarpinski
Copy link
Sponsor Member

We could have a permanent deprecation for atan2 to atan kind of like we do for ** to help people coming from Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maths Mathematical functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants