DSP Run-Time Library Reference
cdiv
complex division
Synopsis
#include <complex.h>
complex_float cdivf (complex_float a, complex_float b)
complex_double cdiv (complex_double a, complex_double b)
complex_fract16 cdiv_fr16 (complex_fract16 a, complex_fract16 b)
Description
This function computes the complex division of two complex inputs:
and
, and returns the result.
b
Algorithm
Re(
a
* )
Re(
=
Re(
c
)
Re
Re(
b
* )
Im(
=
Im(
c
)
Re
Domain
38
-3.4 x 10
to +3.4 x 10
-1.0 to 1.0
4-34
+
b
)
Im(
a
* )
Im(
b
)
2
+
2
(
b
)
Im
(
b
)
−
a
)
Im(
b
* )
Re(
a
)
2
+
2
(
b
)
Im
(
b
)
38
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for
cdivf( ), cdiv( )
for
cdiv_fr16( )
for ADSP-219x DSPs
a
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers