Custom Functions > Structure Definitions > COMPLEXSCALAR Structure
COMPLEXSCALAR Structure
You pass scalar values in custom functions as COMPLEXSCALAR structures. The COMPLEXSCALAR structure has two members:
Scalar->real, the real part of the scalar value
Scalar->imag, the imaginary part of the scalar value
If the result of your function is a COMPLEXSCALAR structure, allocate memory for the complex scalar using the MathcadAllocate function.
Was this helpful?