sin


Sine

[Classification]

Mathematical library

[Syntax]

#include <math.h>

double __far sin(double x);

[Return value]

Returns the sine of x.

If x is Not-a-Number or , sin returns a Not-a-Number (NaN) and sets macro EDOM to global variable errno.

If the solution is a denormal number, sin sets macro ERANGE to global variable errno.

[Description]

This function calculates the sine of x. Specify the angle in radian.