cos

compute the cosine of an angle

Synopsis:

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

Description:

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

An argument of large magnitude may yield a result with little or no significance.

Returns:

the cosine value.

See also:

acos(), errno, sin(), tan()

Examples:

#include <math.h>

void main()
  {
    double value;
    value = cos( 3.1415278 );
  }

Classification:

ANSI

Systems:

Math