atan
arc tangent
Synopsis
#include <math.h>
double atan(double x);
float atanf (float x);
fract16 atan_fr16 (fract16 x);
Description
The
function returns the arc tangent of the argument. The output, in
atan
radians, is in the range -π/2 to π/2.
The
atan_fr16
, output value
0x8000
). The input argument is in radians.
0x6488
Error Conditions
The
function does not return an error condition.
atan
Example
#include <math.h>
double y;
y = atan(0.0);
See Also
atan2,
tan
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
function covers the output range from -π/4 (input value
) to π/4 (input value
0x9B78
/* y = 0.0 */
C/C++ Run-Time Library
, output value
0x7FFF
3-31
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers