AnalysisLibErrType CxSub (double xReal, double xImg, double yReal, double yImg, double *zReal, double *zImg);
Subtracts two complex numbers, x and y. The resulting complex number, z, is obtained using the following formulas:
zReal = xReal yReal
zImg = xImg yImg
| Input | ||
| Name | Type | Description |
| xReal | double-precision | Real part of the first complex number to subtract. Default Value: 0.0 |
| xImg | double-precision | Imaginary part of the first complex number to subtract. Default Value: 0.0 |
| yReal | double-precision | Real part of the second complex number to subtract. Default Value: 0.0. |
| yImg | double-precision | Imaginary part of the second complex number to subtract. Default Value: 0.0 |
| Output | ||
| Name | Type | Description |
| zReal | double-precision | Real part of the result of the complex subtraction. |
| zImg | double-precision | Imaginary part of the result of the complex subtraction. |
| Name | Type | Description |
| status | AnalysisLibErrType | A value that specifies the type of error that occurred. Refer to analysis.h for definitions of these constants. |