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

ComplexField.power gives invalid return values for negative integer reals with a real power #524

Open
lokedhs opened this issue Feb 7, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@lokedhs
Copy link

lokedhs commented Feb 7, 2024

Example:

ComplexField.power(Complex(-3.0, 0.0), 0.5)

This results in a complex result where both the real and imaginary parts are NaN.

Workaround:

ComplexField(Complex(-3.0, 0.0), Complex(0.5, 0.0))
@SPC-code
Copy link
Contributor

SPC-code commented Feb 7, 2024

Thank you, I've reproduced it on the latest build.

@SPC-code SPC-code self-assigned this Feb 7, 2024
@SPC-code SPC-code added the bug Something isn't working label Feb 7, 2024
@SPC-code
Copy link
Contributor

SPC-code commented Feb 7, 2024

Thanks again, the problem was in optimization made for complex numbers without real part: 8a754ac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants