We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
For example,
>>> z1 = complex(1,+0.0) >>> z1**2 (1+0j) >>> z1*z1 (1+0j) >>> z2 = complex(1,-0.0) >>> z2**2 (1+0j) >>> z2*z2 (1-0j)
"Big enough" or non-integer powers are unaffected:
>>> z2**2000 (1-0j) >>> z2**2.1 (1-0j)
It seems, this is related to
cpython/Objects/complexobject.c
Line 164 in c179c0e
r
x.imag
For example,
"Big enough" or non-integer powers are unaffected:
It seems, this is related to
cpython/Objects/complexobject.c
Line 164 in c179c0e
Instead, imaginary component of
rshould copy the sign fromx.imag.Linked PRs