complex numbers should respect the "I" representation

Mark Dickinson dickinsm at gmail.com
Sat Jun 28 10:22:43 EDT 2008


On Jun 28, 1:48 pm, "narutocan... at gmail.com" <narutocan... at gmail.com>
wrote:
> hi
>
> I think complex numbers should respect the "i" or "I" representation,
> instead of "j".
> No reason being cute and using a different character instead of the
> traditional representation? At least have the decency of supporting
> the orginal representation?
> Programmers use j as frequently as i as indexing variable, I see no
> reason choosing "j" over "i". Have some respect for majority's rules.
> This is childish.

You could set "I = 1j" at the start of your scripts.  Then you can
happily write your complex numbers in the form:

3+4*I

Mark



More information about the Python-list mailing list