acos
arc cosine
Synopsis
#include <math.h>
double acos(double x);
float acosf (float x);
fract16 acos_fr16 (fract16 x);
Description
The
function returns the arc cosine of the argument. The input must
acos
be in the range [-1, 1]. The output, in radians, is in the range [0, π].
The
acos_fr16
0.9 (
). The input argument is in radians. Output values range
=0x7333
from
*2/π (
acos(0)
Error Conditions
The
function returns a zero if the input is not in the defined range.
acos
Example
#include <math.h>
double y;
y = acos(0.0);
See Also
cos
VisualDSP++ 3.5 C/C++ Compiler and Library Manual
for ADSP-219x DSPs
function is only defined for input values between 0 and
) to
=0x7FFF
acos(0.9)
/* y = π/2 */
C/C++ Run-Time Library
*2/π (
).
=0x24C1
3-29
Need help?
Do you have a question about the VISUALDSP++ 3.5 and is the answer not in the manual?
Questions and answers