DADiSP Worksheet Functions > Function Categories > Complex Conversions > CARTESIAN

 

CARTESIAN

Purpose:

Converts an expression to Real/Imaginary form in Cartesian coordinates.

Syntax:

CARTESIAN(val)

val

-

A scalar, series or table.

Returns:

Complex scalar, series, or table.

Example:

cartesian(gsin(20,.05,1.0))

 

creates a 1 Hz sine wave of 20 points spaced 0.05 seconds apart. The value of each point in the sine wave is a Complex number in Real/Imaginary form where the imaginary part is zero.

Example:

cartesian(-1)

 

returns the Complex scalar -1.0 + 0i.

Remarks:

CARTESIAN returns a complex value regardless of the input value. For series, CARTESIAN always returns a complex series.

 

See MAKECARTESIAN to combine two real numbers into a complex number in Cartesian form.

See Also:

COMPLEX

CONJUGATE

IMAGINARY

MAGNITUDE

MAKECARTESIAN

MAKEPOLAR

PHASE

POLAR

REAL