Analysis Library Chapter 3
LabWindows/CVI Standard Libraries 3-10 © National Instruments Corporation
CxDiv1D
int status = CxDiv1D (double arrayXReal[], double arrayXImaginary[],
double arrayYReal[], double arrayYImaginary)[],
int numberofElements, double outputArrayReal[],
double outputArrayImaginary[]);
Purpose
Divides two 1D complex arrays. The function obtains the ith element of the resulting complex
array by using the following formulas.
zr xr yr xi yi yr yi
iiiiiii
=∗+∗ +()/()
22
zi xi yr xr yi yr yi
iiiiiii
=∗∗ +()/()
22
The function performs the operations in place; that is, the input and output complex arrays can be
the same.
Parameters
Input arrayXReal double-precision
array Real part of x.
arrayXImaginary double-precision
array Imaginary part of x.
arrayYReal double-precision
array Real part of y.
arrayYImaginary double-precision
array Imaginary part of y.
numberofElements integer Number of elements.
Output outputArrayReal double-precision
array Real part of z.
outputArrayImaginary double-precision
array Imaginary part of z.
Return Value
status integer Refer to error codes in
Table 3-2.