• esProc
Tutorial
Function Reference
Code Reference
User Reference
External Library Guide
Data File Tool Manual
DQL Tutorial
Cluster Server Manager Manual
SPL WIN Manual
• YModel
User Reference
JSON-style Parameter Guide
• ReportLite
User Reference
• Official Website

# complex()

Description:

Create a sequence of complex numbers.

Syntax:

 complex(A,B) Create a sequence of complex numbers using sequence A of real parts and sequence B of imaginary parts; if A and B do not have same length, automatically use 0 to fill the absent part. complex(C) Use sequence C of number pairs to create a sequence of complex numbers; if a member of C is a single value, take it as the real part by default and use 0 as the imaginary part.

Note:

The external library function (See External Library Guide) creates a sequence of complex numbers.

Parameter:

 A A sequence B A sequence C A second-level sequence

Return value:

A sequence

Example:

 A 1 =[1,3,5] 2 =[2,4,6,8] 3 =complex(A1,A2) Use A1’s member as the real part and A2’s as the imaginary part to create a sequence of complex numbers while using 0 at the absent place. 4 =[[1,2],[3,4],[5,6],[7,8],[5,0],[-5,0],[-8,-9],[-0.3,5],[3,-4],[0,0],[0,3],[0,-2]] 5 =complex(A4) Create a sequence of complex numbers using a sequence of number pairs. 6 =[1] 7 =complex(A6) When member of the sequence is a single value, use it as the real part by default.