complex

Syntax

complex(X, Y)

Arguments

X and Y are numeric scalars, pairs, vectors or matrices. They can be of integral (compress or INT128 not included) or floating type.

Details

Create a complex number X+Y*i. The length of a complex number is 16 bytes. The low 8 bytes are stored in X, and the high 8 bytes are stored in Y.

Examples

$ complex(2, 5)
2.0+5.0i

$ a=1.0 2.3
$ b=3 4
$ complex(a,b)

0

1

1.0+3.0i

2.3+4.0i