CxDiv

AnalysisLibErrType CxDiv (double xReal, double xImg, double yReal, double yImg, double *zReal, double *zImg);

Purpose

Divides two complex numbers, x and y. CxDiv obtains the resulting complex number, z, using the following formulas:

Parameters

Input
Name Type Description
xReal double-precision Real part of the dividend.

Default Value: 1.0.
xImg double-precision Imaginary part of the dividend.

Default Value: 0.0.
yReal double-precision Real part of the divisor.

Default Value: 1.0.
yImg double-precision Imaginary part of the divisor.

Default Value: 0.0.
Output
Name Type Description
zReal double-precision Real part of the result of the complex division.
zImg double-precision Imaginary part of the result of the complex division.

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.