cc [ flag ... ] file ... -lm [ library ... ] #include <math.h>
The cos() function computes the cosine of x, measured in radians.
Upon successful completion, cos() returns the cosine of x.
If x is NaN or +-Inf, NaN is returned.
No errors will occur.
See attributes(5) for descriptions of the following attributes:
acos(3M), isnan(3M), sin(3M), tan(3M), attributes(5)