[Bug 511366] Re: python 3.1 complex number data type returning wrong result from .imag() function
Alex Wardle
awardle at gmx.com
Fri Jan 22 23:12:09 UTC 2010
Thank you for reporting this bug. This is not a bug because when you do
a = 3-4j, a is set to a complex number however when you do 3-4j.imag it
is only finding the imaginary part of the 4j and then subtracting this
from 3 giving you -1. To get the answer you were looking for you would
need to do (3-4j).imag. I hope that this clears things up for you, if
not please feel free to reply.
** Changed in: python3.1 (Ubuntu)
Status: New => Invalid
--
python 3.1 complex number data type returning wrong result from .imag() function
https://bugs.launchpad.net/bugs/511366
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list