sin
Computes the sine of the argument (in radians)
#include <math.h>
double sin (
double x);
The sin function returns the sine value.
The sin function computes the sine of x (measured in radians). A large magnitude argument can yield a result with little or no significance.
#include <math.h>
#include <stdio.h>
main ()
{
printf ("%f\n", sin (.5) );
}
produces the following:
0.479426