DSP Run-Time Library Reference
cabs
complex absolute value
Synopsis
#include <complex.h>
float cabsf (complex_float a)
double cabs (complex_double a)
fract16 cabs_fr16 (complex_fract16 a)
Description
This function computes the complex absolute value of a complex input
and returns the result.
Algorithm
=
2
+
c
Re ( ) Im ( )
a
Domain
2
2
Re
(a) + Im
(a) <= 3.4 x 10
2
2
Re
(a) + Im
(a) <= 1.0
Note
The minimum input value for both real and imaginary parts can be less
than 1/256 for
4-30
2
a
38
but the result may have bit error of 2 to 3 bits.
cabs_fr16
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for
cabsf( ), cabs( )
for
cabs_fr16( )
for ADSP-219x DSPs
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers