compute the cosine of an angle
#include <math.h> double cos( double x );
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. |
The cosine value.
#include <math.h>
void main()
{
double value;
value = cos( 3.1415278 );
}
ANSI
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |