std::sin

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       sin( float arg );

double      sin( double arg );

long double sin( long double arg );

Computes sine of arg

[edit] Parameters

arg - floating point value representing angle in radians

[edit] Return value

sine of arg in the range [-1.0 ; 1.0].

Domain error occurs if arg is infinite. NAN is returned in that case.

[edit] See also

cos
computes cosine (cos(x))
(function)
tan
computes tangent (tan(x))
(function)
asin
computes arc sine (arcsin(x))
(function)