cos

Computes the cosine of the argument.

Library:LibC
Classification:ANSI
Service:Math

Syntax

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

Parameters

x

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

Return Values

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