really silly nit: why 3+5j instead of 3+5i?
jimn at minusen.force9.co.uk
jimn at minusen.force9.co.uk
Sun May 14 02:57:24 EDT 2000
Lloyd Zusman <ljz at asfast.com> wrote:
: "Andrew Dalke" <dalke at acm.org> writes:
[snip]
: Clearly, there are two widely used representations of the square root
: of -1: "i" and "j". Forgive me if this question has been answered and
: beaten to death in one or more earlier discussions, but is there any
: reason why Python couldn't use both "i" and "j", as well? Given that
: things such as "1 + 3i" are currently illegal in Python, I don't
: believe that any legacy code could possibly break if in a future
: Python release, any one of 4 values ("j", "J", "i", and "I") could be
: appended to a number to cause it to be treated as imaginary, instead
: of just the two values we have today.
As I see it, the problem would come when converting a complex number
to a string - which representation should it use? Is it not preferable
to use the same representation for display as is used for literals?
Just my 2p worth.
Jim
--
It's not a bug, it's tradition!
More information about the Python-list
mailing list