Namespaces
Variants
Views
Actions

sin

From cppreference.com
< c | numeric | math
Revision as of 07:04, 20 April 2012 by P12 (Talk | contribs)

Template:c/numeric/math/sidebar

Defined in header <math.h>
float       sinf( float arg );
(since C99)
double      sin( double arg );
long double sinl( long double arg );
(since C99)

Computes sine of arg

Parameters

arg - floating point value representing angle in radians

Return value

Sine of arg in the range [-1 ; +1].

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

See also

computes cosine (cos(x))
(function) [edit]
computes tangent (tan(x))
(function) [edit]
computes arc sine (arcsin(x))
(function) [edit]