-
Notifications
You must be signed in to change notification settings - Fork 18k
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
math/cmplx: Pow(0, NaN) panics #30088
Comments
CC @griesemer @rsc for |
Yep, that code is definitely wrong: it assumes that Lines 51 to 63 in 20c110e
|
For comparison, |
C defines the error behavior for
|
Change https://golang.org/cl/161197 mentions this issue: |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run the code here: https://play.golang.org/p/yfwQqWxgxup or https://play.golang.org/p/fYLIyw9slsj
https://play.golang.org/p/W6okRxbBrvO also look wrong, but does not panic.
What did you expect to see?
NaN+NaNi or similar.
What did you see instead?
The text was updated successfully, but these errors were encountered: