complex
Creates an complex number.
Syntax
cpx = complex(a)
cpx = complex(a, b)
Input argument
a - a variable: real part
b - a variable: imaginary part
Output argument
cplx - result of a + b*i
Description
complex returns a complex value from real arguments.
With only one input argument, complex returns a complex value a + 0*i.
Example
See also
History
Version
Description
1.0.0
initial version
Author
Allan CORNET
Last updated