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

Raising to negative power does not flip errors as expected #9

Open
cgobat opened this issue Aug 8, 2023 · 0 comments · May be fixed by #16
Open

Raising to negative power does not flip errors as expected #9

cgobat opened this issue Aug 8, 2023 · 0 comments · May be fixed by #16
Labels
bug Something isn't working

Comments

@cgobat
Copy link
Owner

cgobat commented Aug 8, 2023

In #8, @sevenstarknight brought to light the fact that the behavior of power operations with exponents < 0 is not consistent with the equivalent division operation. In other words, given x = a_u(...), 1/x currently produces a different result than x**(-1.0). These should, of course, be equivalent operations.

The implementations of the __pow__ and __rpow__ methods should be investigated and adjusted accordingly.

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
1 participant