[Python-Dev] return type of complex (original) (raw)
Devin Jeanpierre jeanpierreda at gmail.com
Mon Oct 22 13:37:57 CEST 2012
- Previous message: [Python-Dev] return type of __complex__
- Next message: [Python-Dev] return type of __complex__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, Oct 22, 2012 at 7:34 AM, Larry Hastings <larry at hastings.org> wrote:
-1 ** 0.5 -1.0
Be careful about order of operations!
>>> (-1)**.5
(6.123233995736766e-17+1j)
-- Devin
- Previous message: [Python-Dev] return type of __complex__
- Next message: [Python-Dev] return type of __complex__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]