[New-bugs-announce] [issue1168] complex arithmetic: strange results with "imag"
Nusret BALCI
report at bugs.python.org
Sun Sep 16 09:31:20 CEST 2007
New submission from Nusret BALCI:
"imag" returns incorrect results if invoked on a literal number.
Looks like a bug.
>>> 1-2j
(1-2j)
>>> 1-2j.real
1.0
>>> 1-2j.imag
-1.0
>>> 1-4j.imag
-3.0
>>> (1-4j).imag
-4.0
>>>
----------
messages: 55940
nosy: newman
severity: normal
status: open
title: complex arithmetic: strange results with "imag"
type: behavior
versions: Python 2.5, Python 3.0
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1168>
__________________________________
More information about the New-bugs-announce
mailing list