c:math:cos

C++ Reference

cos

Syntax:

    #include <cmath>
    double cos( double arg );

The cos() function returns the cosine of arg, where arg is expressed in radians. The return value of cos() is in the range [-1,1]. If arg is infinite, cos() will return NAN and raise a floating-point exception.

Related Topics: acos, asin, atan, atan2, cosh, sin, sinh, tan, tanh