C Tutorial/math.h/sin
sin
Item Value Header file math.h Declaration float sinf(float arg);double sin(double arg);long double sinl(long double arg); Return returns the sine of arg. Parameter The value of arg must be in radians.
#include <math.h>
#include <stdio.h>
int main(void)
{
double val = -1.0;
do {
printf("Sine of %f is %f.\n", val, sin(val));
val += 0.1;
} while(val<=1.0);
return 0;
}