Synopsis
#include <math.h>
double sin(double x);
Description

sin returns the radian circular sine of x.

Fast math library behavior

If |x| > 10^9, errno is set to EDOM and sin returns HUGE_VAL.

IEC 60559 math library behavior

sin returns x if x is NaN.
sin returns NaN with invalid signal if |x| is ?.

Portability

sin conforms to ISO/IEC 9899:1990 (C90) and ISO/IEC 9899:1999 (C99).