[Previous]
[Contents]
[Next]

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


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

Returns:

The cosine value.

Examples:

#include <math.h>

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

Classification:

ANSI

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

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


[Previous]
[Contents]
[Next]