arg
get phase of a complex number
Synopsis
#include <complex.h>
float argf (complex_float a);
double arg (complex_double a);
fract16 arg_fr16 (complex_fract16 a);
Description
This function computes the phase associated with a Cartesian number rep-
resented by the complex argument
Refer to the description of the
how a phase, represented as a fractional number, is interpreted in
polar notation (see
Algorithm
Im( )
a
=
c atan
Re( )
a
Domain
38
-3.4 x 10
to +3.4 x 10
-1.0 to +1.0
Note
Im (a) /Re (a) < =1
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
, and returns the result.
a
polar_fr16
"polar" on page
38
for
argf( ), arg( )
for
arg_fr16( )
for
arg_fr16( )
DSP Run-Time Library
function which explains
4-91).
4-27
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers