sin

calculate the sine of an angle

Synopsis:

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

Description:

The sin() function computes the sine of x (measured in radians). An argument with a large magnitude may yield a result with little or no significance.

Returns:

the sine value

See also:

acos(), asin(), atan(), atan2(), cos(), tan()

Examples:

#include <stdio.h>
#include <math.h>

void main()
  {
    printf( "%f\n", sin(.5) );
  }

produces the output:

0.479426

Classification:

ANSI

Systems:

Math