cos(3) - Linux man page

Name

cos, cosf, cosl - cosine function

Synopsis

#include <math.h>
double cos(double x);
float cosf(float x);
long double cosl(long double x);
Link with -lm.

Description

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

Return Value

The 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)

Referenced By

im_tantra(3), sincosl(3)