Analysis Library Chapter 3
LabWindows/CVI Standard Libraries 3-12 © National Instruments Corporation
CxMul
int status = CxMul (double xReal, double xImaginary, double yReal,
double yImaginary, double *outputReal,
double *outputImaginary);
Purpose
Multiplies two complex numbers. The function obtains the resulting complex number by using
the following formulas.
zr = xr*yr - xi*yi
zi = xr*yi + xi*yr
Parameters
Input xReal double-precision Real part of x.
xImaginary double-precision Imaginary part of x.
yReal double-precision Real part of y.
yImaginary double-precision Imaginary part of y.
Output outputReal double-precision Real part of z.
outputImaginary double-precision Imaginary part of z.
Return Value
status integer Refer to error codes in Table 3-2.
CxMul1D
int status = CxMul1D (double arrayXReal[], double arrayXImaginary[],
double arrayYReal[], double arrayYImaginary[],
int numberofElements, double outputArrayReal[],
double outputArrayImaginary[]);
Purpose
Multiplies two 1D complex arrays. The function obtains the ith element of the resulting complex
array by using the formulas:
zr xr yr xi yi
iiiii
=∗−∗
zi xr yi xi yr
iiiii
=∗+∗