[issue43830] (-1) ** 0.5 returns (6.123233995736766e-17+1j) instead of 1j

Steven D'Aprano report at bugs.python.org
Tue Apr 13 05:58:30 EDT 2021


Steven D'Aprano <steve+python at pearwood.info> added the comment:

Sorry Nathan, I worded my first response awkwardly, of course mathematically we should expect a result of 1j, by why do you expect it in a floating point calculation? Do you have an alternative?

(I promise this is my last comment until you have had a chance to reply.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43830>
_______________________________________


More information about the Python-bugs-list mailing list