You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh-117999: Fix small integer powers of complex numbers
* Fix the sign of zero components in the result. E.g. complex(1,-0.0)**2
now evaluates to complex(1,-0.0) instead of complex(1,-0.0).
* Fix negative small integer powers of infinite complex numbers. E.g.
complex(inf)**-1 now evaluates to complex(0,-0.0) instead of
complex(nan,nan).
* Powers of infinite numbers no longer raise OverflowError. E.g.
complex(inf)**1 now evaluates to complex(inf) and complex(inf)**0.5
now evaluates to complex(inf,nan).
Fix calculation of powers of complex numbers. Small integer powers now produce correct sign of zero components. Negative powers of infinite numbers now evaluate to zero instead of NaN.
2
+
Powers of infinite numbers no longer raise OverflowError.
0 commit comments