[Previous]
[Contents]
[Next]

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.

Examples:

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

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

produces the output:

0.479426

Classification:

ANSI

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

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


[Previous]
[Contents]
[Next]