Synopsis

#include <math.h>

double cos(double x);

Description

Returns the cosine of an angle of x radians.

Return value

On success, these functions return the cosine of x.

If x is a NaN, a NaN is returned.

If x is positive infinity or negative infinity, a domain error occurs, and a NaN is returned.

Errors