Mark Dickinson <dickinsm <at> gmail.com> writes:
> 
> There's one respect in which complex is slightly more tightly
> integrated in py3k than in trunk:  raising a negative number to a
> non-integer power (e.g., (-1)**0.5) gives a complex result in py3k.

>>> (-1)**.5
(6.123031769111886e-17+1j)

Don't we have a precision problem here? 0.5 is supposed to be represented
exactly, isn't it?



_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to