cos

Computes the cosine of the argument

Local Servers:nonblocking
Remote Servers:N/A
Classification:ANSI
Service:Mathematical Computation

Syntax

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

Parameters

x
(IN) Specifies the argument whose cosine is to be computed.

Return Values

The cos function returns the cosine value.

Remarks

The cos function computes the cosine of x (measured in radians). A large magnitude argument can yield a result with little or no significance.

See Also

acos, sin, tan

Example

  #include <math.h>  
  #include <stdio.h>  
   
  main ()  
  {  
     double value;  
     value = cos (3.1415278);  
  }