DADiSP Worksheet Functions > Function Categories > Complex Conversions > MAKECARTESIAN
Combines two input expressions into complex Cartesian (Real/Imaginary) form.
MAKECARTESIAN(val1, val2)
val1 |
- |
A scalar, series or table. |
val2 |
- |
A scalar, series or table. |
Complex scalar, series, or table in Real/Imaginary form.
makecartesian(1, 2)
returns the scalar 1 + 2i.
makecartesian(1..5, 2)
returns the complex series {1+2i, 2+2i, 3+2i, 4+2i, 5+2i}.
makecartesian(W1, W2)
is equivalent to W1 + W2*i for W1 and W2 real series.
Returns a Complex value regardless of the input value. If at least one of the input arguments is a series, MAKECARTESIAN returns a Complex series.
makecartesian(a, b) is equivalent to a + b*i.
For complex inputs, makecartesian(a, b) is equivalent to:
real(a) + real(b)*i.