C++ Programming/Code/Standard C Library/Functions/cos
< C++ Programming < Code < Standard C Library < Functionscos
Syntax |
#include <cmath>
float cos( float arg );
double cos( double arg );
long double cos( long 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.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.