# [PYTHON MATRIX-SIG] the imaginary constant idea is not good

**Chris Chase S1A
**
chris.chase@jhuapl.edu

*Fri, 3 Nov 1995 17:36:48 -0500*

Paul> Anybody know what is in Matlab or IDL?
IDL uses a function: complex(real, imaginary). Output is
"(real, imaginary)" without the quotes. Arrays of complex numbers are
easily formed by using arrays for the real and imaginary parts.
Matlab uses a complex constant i or j (actually functions) with the
special notation that allows affixing i or j to a numeric constant,
i.e. 2i = 2*i. Thus, 2 + 3i * 1 - 7i is 2-4i. Parentheses must be
used to obtain the other interpretation. The use of i or j as
functions can be hidden by a local variable of the same name. Output
uses the i suffix.
Chris
=================
MATRIX-SIG - SIG on Matrix Math for Python
send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
=================