DADiSP Worksheet Functions > Function Categories > Complex Conversions > CARTESIAN
Converts an expression to Real/Imaginary form in Cartesian coordinates.
CARTESIAN(val)
val |
- |
A scalar, series or table. |
Complex scalar, series, or table.
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.
cartesian(-1)
returns the Complex scalar -1.0 + 0i.
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.