ISCOMPLX

Purpose:

Returns 1 if input parameter is complex.

Syntax:

ISCOMPLX(val)

val

-

A series, scalar or string value to test.

Returns:

The scalar 1 if the input is complex or a complex series, else 0.

Example:

iscomplx(3i)

 

returns 1.

Example:

iscomplx("string")

 

returns 0.

Example:

iscomplx(fft({1, 2, 3, 4}))

 

returns 1

Remarks:

If the input series is empty, iscomplx returns 0.

See Also:

ISREAL

ISSTR