cos

NAME

cos, cosf, cosl - cosine function

SYNOPSIS

#include <math.h>
 I double cos(double  x );

I float cosf(float x );
I long double cosl(long double x );
Link with -lm.

DESCRIPTION

The R cos () function returns the cosine of x, where x is given in radians.

RETURN VALUE

The R cos () function returns a value between -1 and 1.

CONFORMING TO

SVr4, 4.3BSD, C99. The float and long double variants are C99 requirements.

SEE ALSO

acos(3), asin(3), atan(3), atan2(3), ccos(3), sin(3), tan(3)