sin()


The sin() function returns the sine of an argument (angle in radians). It is defined in math.h header file. The return value of sin() lies between 1 and -1.

Sample Program:

/*
Write a program to illustrate sin math function of C.
*/



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

main()
{
 double result, x = .75;
 result = sin(x);
 printf("The sin(%lf) = %lf\n", x, result);
 return 0;
}

Post a Comment

0 Comments