Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Mathematical Library Functionscos(3M)


NAME

 cos - cosine function

SYNOPSIS

 
cc [ flag ... ] file ... -lm [ library ... ]
#include <math.h>
double cos(double x);

DESCRIPTION

 

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

RETURN VALUES

 

Upon successful completion, cos() returns the cosine of x.

If x is NaN or +-Inf, NaN is returned.

ERRORS

 

No errors will occur.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

acos(3M), isnan(3M), sin(3M), tan(3M), attributes(5)


SunOS 5.9Go To TopLast Changed 29 Dec 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.