##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# sin

From cppreference.com
< c‎ | numeric‎ | math

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`

### [edit] Parameters

arg | - | floating point value representing angle in radians

### [edit] Return value

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

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

### [edit] See also

cos | computes cosine (cos(x)) (function) [edit]
tan | computes tangent (tan(x)) (function) [edit]
asin | computes arc sine (arcsin(x)) (function) [edit]
C++ documentation for sin

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/numeric/math/sin&oldid=62608"