CxAdd
AnalysisLibErrType CxAdd (double xReal, double xImaginary, double yReal, double yImaginary, double *outputReal, double *outputImaginary);
Purpose
Adds two complex numbers, x and y. CxAdd obtains the resulting complex number, z, using the following formulas:
zReal = xReal + yReal
zImg = xImg + yImg
Parameters
Input | ||
Name | Type | Description |
x_Real | double | Real part of the first complex number to add. Default Value: 0.0 |
x_Imaginary | double | Imaginary part of the first complex number to add. Default Value: 0.0 |
y_Real | double | Real part of the second complex number to add. Default Value: 0.0 |
y_Imaginary | double | Imaginary part of the second complex number to add. Default Value: 0.0 |
Output | ||
Name | Type | Description |
output_Real | double | Real part of the result of the complex addition. |
output_Imaginary | double | Imaginary part of the result of the complex addition. |
Return Value
Name | Type | Description |
status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |
Additional Information
Library: Analysis Library
Include file: analysis.h
LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later