cmplx#

ens_calculator.cmplx(source_parts: List[ENS_PART] | List[int] | List[str], scalar_or_vector: ENS_VAR | str | int, frequency: float, output_varname: str | None = None) ENS_VAR#

Computes a complex scalar or vector from two scalar or vector variables, Z = A + Bi. The frequency is optional and is used only for reference.

Args:
source_parts:

Any part(s) or a part number.

scalar_or_vector:

A scalar/vector variable for the imaginary portion.

frequency:

A frequency value in degrees or leave blank and UNDEFINED will be used.

output_varname:

The name of the newly created variable

Returns:

New ENS_VAR instance or None

Note:

See Cmplx() for function details.