# CxDiv1D

AnalysisLibErrType CxDiv1D (double arrayXReal[], double arrayXImg[], double arrayYReal[], double arrayYImg[], int numberOfElements, double outputReal[], double outputImg[]);

## Purpose

Divides two complex 1D arrays. CxDiv1D obtains the element of the resulting complex array using the following formulas:

CxDiv1D can perform this operation in place; that is, the input and output arrays can be the same.

## Parameters

Input
Name | Type | Description
arrayXReal | double-precision array | Real part of the dividend array.
arrayXImg | double-precision array | Imaginary part of the dividend array.
arrayYReal | double-precision array | Real part of the divisor array.
arrayYImg | double-precision array | Imaginary part of the divisor array.
numberOfElements | integer | Number of elements to divide.
Output
Name | Type | Description
outputReal | double-precision array | Real part of the result of the complex array division.
outputImg | double-precision array | Imaginary part of the result of the complex array 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.