ACOS
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
acos
- arc cosine function
SYNOPSIS
Fd #include <math.h>
Ft double
Fn acos double x
DESCRIPTION
The
Fn acos
function computes the principal value of the arc cosine of
Fa x .
A domain error occurs for arguments not in the range [-1, +1].
For a discussion of error due to roundoff, see
math(3).
RETURN VALUES
The
Fn acos
function returns the arc cosine in the range
Bq 0 ,
radians.
On the
VAX
and
Tahoe
if:
| x | > 1
Fn acos x
sets the global variable
errno
to
EDOM
and a reserved operand fault is generated.
SEE ALSO
sin(3),
cos(3),
tan(3),
asin(3),
atan(3),
atan2(3),
sinh(3),
cosh(3),
tanh(3),
math(3),
STANDARDS
The
Fn acos
function conforms to
St -ansiC .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
- STANDARDS
-
This document was created by
man2html,
using the manual pages.
Time: 16:10:48 GMT, January 15, 2023