CxRecip

AnalysisLibErrType CxRecip (double xReal, double xImg, double *yReal, double *yImg);

Purpose

Finds the reciprocal of a complex number, x. CxRecip obtains the resulting complex number, y, using the following formulas:

Parameters

Input
Name Type Description
xReal double-precision Real part of the complex number whose reciprocal is computed.

Default Value: 1.0.
xImg double-precision Imaginary part of the complex number whose reciprocal is computed.

Default Value: 0.0.
Output
Name Type Description
yReal double-precision Real part of the resulting complex reciprocal.
yImg double-precision Imaginary part of the resulting complex reciprocal.

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.