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

fix sinc(Inf+Inf*im) #37547

Merged
merged 2 commits into from
Sep 13, 2020
Merged

fix sinc(Inf+Inf*im) #37547

merged 2 commits into from
Sep 13, 2020

Conversation

stevengj
Copy link
Member

@stevengj stevengj commented Sep 12, 2020

Fixes a regression caused by a typo in 37217 #37273: if the imaginary part of x is infinite, sinc(x) should not be zero and is generally just NaN.

(In principle, we could return a non-NaN complex infinity for sinc(finite ± Inf*im), but I'm not sure it is worth the logic for that additional case. In any case, that could be a separate PR since it is not a regression.)

@stevengj stevengj added kind:regression Regression in behavior compared to a previous version kind:bugfix This change fixes an existing bug labels Sep 12, 2020
@giordano
Copy link
Contributor

Fixes a regression caused by a typo in #37217

Reference to wrong pull request?

@stevengj stevengj merged commit 90f8b17 into master Sep 13, 2020
@stevengj stevengj deleted the sincfix branch September 13, 2020 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bugfix This change fixes an existing bug kind:regression Regression in behavior compared to a previous version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants