Chapter 3 Analysis Library
© National Instruments Corporation 3-9 LabWindows/CVI Standard Libraries
Return Value
status integer Refer to error codes in
Table 3-2.
CxDiv
int status = CxDiv (double xReal, double xImaginary, double yReal, yImaginary,
double *outputReal, double *outputImaginary);
Purpose
Divides two complex numbers. The function obtains the resulting complex number by using the
following formulas.
zr = (xr*yr + xi*yi) / (yr2 + yi2)
zi = (xi*yr - xr*yi ) / (yr2 + yi2)
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.