DADiSP Worksheet Functions > Function Categories > Complex Conversions > MAKECARTESIAN

 

MAKECARTESIAN

Purpose:

Combines two input expressions into complex Cartesian (Real/Imaginary) form.

Syntax:

MAKECARTESIAN(val1, val2)

val1

-

A scalar, series or table.

val2

-

A scalar, series or table.

Returns:

Complex scalar, series, or table in Real/Imaginary form.

Example:

makecartesian(1, 2)

 

returns the scalar 1 + 2i.

Example:

makecartesian(1..5, 2)

 

returns the complex series {1+2i, 2+2i, 3+2i, 4+2i, 5+2i}.

Example:

makecartesian(W1, W2)

 

is equivalent to W1 + W2*i for W1 and W2 real series.

Remarks:

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.

See Also:

CARTESIAN

COMPLEX

IMAGINARY

MAKEPOLAR

PHASE

POLAR

REAL