-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
geomspace
on complex arguments
#25644
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
Comments
I can confirm the documentation does not match the implementation. I am not sure what the use case is for a complex A fix 8000 that modifies the code so the shortest path is used, is in main...eendebakpt:geomspace, but it is not very elegant (it ad-hoc modifies the phase of the result after the main calculation). Another option would be to deal with the radius and phase of the start and stop separately. For the radius use the normal logspace, for the phase part use a linspace (making sure to take the shortest path module 2*pi). @endolith Any ideas on this? |
I did a quick test on
I remember my pleasant surprise about "... how the code in geomspace is substantially simplified by using the new definition!", but it seems it was actually more than that! Would you be able to confirm that the issue is solved on numpy-dev? |
@eendebakpt I had no use case in mind for complex inputs, and wasn't sure if they even needed to be supported. I think the "shortest such path" description was more an observation than a specification. I don't care what it does with complex inputs. The main goal of |
Uh oh!
There was an error while loading. Please reload this page.
Describe the issue:
The docs for
np.geomspace
state:But the function does not appear to obey this rule. I'm not sure how it is in fact choosing branch cuts.
Searching a bit, this may be altered by #25441 but I believe that is not in any released version yet.
Reproduce the code example:
Error message:
No error message. Numerical result is:
Python and NumPy Versions:
Runtime Environment:
Context for the issue:
The text was updated successfully, but these errors were encountered: