The cos function

Name

cos -- 

Synopsis

#include <math.h>

double cos (double x );

Description

The cos function computes the cosine of x (measured in radians).

Returns

The cos function returns the cosine value.

Implementation Notes

The absolute error over the range -2*pi to +2*pi is less than 2 * DBL_EPSILON.