Operator
|
Functionality
|
+-*/
|
Operate on complex numbers
|
=<>
|
Operate on complex numbers
|
ABS
|
Return absolute value (magnitude or modulus)
|
ATN
|
Return arctangent of complex number
|
COS
|
Return cosine of complex number
|
ALLOCATE
|
COMPLEX can be specified
|
COM
|
COMPLEX can be specified
|
DATA
|
Use rectangular form separated by comma
|
DISP
|
Display in rectangular form separated by space
|
DEF
|
COMPLEX can be specified
|
ENTER
|
Enter in rectangular form separated by non-numeric
|
EXP
|
Return "e" raised to complex power
|
EIMAGE
|
Treat complex like two REALs
|
IMPUT
|
Input in rectangular form
|
LGT
|
Return base 10 log of complex number
|
LOG
|
Return natural log of complex number
|
MAT
|
ABS, ARG, CMPLX, CONJG, IMAG, REAL
|
MAT REORDER
|
Reorder complex arrays
|
MAT SEARCH
|
Search complex arrays
|
OUTPUT
|
Output in rectangular form separated by comma
|
PRINT
|
Print in rectangular form separated by space
|
READ
|
Read in rectangular form
|
SIN
|
Return sine of complex number
|
SQR
|
Return square root of complex number
|
SUB
|
COMPLEX can be specified
|
TAN
|
Return tangent of complex number
|
Notice that only two of the relational operators, <> and =, are extended for complex numbers. The other relational operators depend on the linear ordering of the data type. In other words, all REAL, LONG or INTEGER numbers could be laid out on a number line and, of any two different numbers, one would be closer to positive infinity than the other. Since linear ordering is not defined for the complex data type, the <, >, <=, and >= operators are also not defined.
Complex and Real Operators
Operator
|
Functionality
|
ACSH
|
Hyperbolic arc-cosine of complex or real
|
ARG
|
Argument (angle) of complex number in polar form
|
ASNH
|
Hyperbolic arcsine of complex or real
|
ATNH
|
Hyperbolic arctangent of complex or real
|
CMPLX
|
Combine two REALs into a complex
|
COMPLEX
|
Declare complex variables
|
CONJG
|
Conjugate of complex
|
COSH
|
Hyperbolic cosine of complex or real
|
IMAG
|
Return imaginary part of complex number
|
REAL
|
Return real part of complex number
|
SINH
|
Hyperbolic sine of complex or real
|
TANH
|
Hyperbolic tangent of complex or real
|