8000 Unexpected results with inf and complex numbers (Trac #1157) · Issue #1755 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

Unexpected results with inf and complex numbers (Trac #1157) #1755

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

Closed
thouis opened this issue Oct 19, 2012 · 2 comments
Closed

Unexpected results with inf and complex numbers (Trac #1157) #1755

thouis opened this issue Oct 19, 2012 · 2 comments

Comments

@thouis
Copy link
Contributor
thouis commented Oct 19, 2012

Original ticket http://projects.scipy.org/numpy/ticket/1157 on 2009-07-01 by @cournape, assigned to unknown.

#!python
import numpy as np
a = np.complex(1, np.inf)
b = 1 + 1j * np.inf
print a
print b

Outputs:

1+infj
nan+infj
@thouis
Copy link
Contributor Author
thouis commented Oct 19, 2012

@cournape wrote on 2009-07-01

this is actually a python bug:

complex(float("inf"), 0) * complex(0, 1)

@thouis
Copy link
Contributor Author
thouis commented Oct 19, 2012

@cournape wrote on 2009-07-01

Actually, this is obviously correct behavior.

Time to go to sleep :)

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

No branches or pull requests

1 participant
0