Real2Complex-func
This function is used to convert the specified two reals into a complex number.
Note that the output for this function are complex values, so when doing calculation on data columns, you need to set column data type to complex prior to set column formula. For details, see the example section below.
complex Real2Complex(double d1, double d2)
d1
d2
Return a complex number.
complex c = real2complex(1, 2); c = ; // c=1+2i
// Set data type of column C to complex 16 in advance wks.col3.numerictype = 11; // Generate a set of complex numbers and put to column C col(C) = real2complex(col(A), col(B));
ImReal, Imaginary