Syntax :

Real Version:
double sin(double x);
Complex Number Version :
complex sin(complex z);


Parameter : 
  • Parameter : Double Value.
  • Returns : Double

#include<stdio.h>
  #include<math.h>
  int main(void)
  {
     double result, x = 0.5;
     result = sin(x);
     printf("The sin() of %lf is %lf\n", x, result);
     return 0;
  }
  • For More Accurate Result We should use Mathematical Constant M_PI
  • Angles are specified in radians.
AngleSymbolic Version
180M_PI
90M_PI / 2
60M_PI / 3
45M_PI / 4
30M_PI / 6


Tags / Keywords : | ,

0 comments

Post a Comment

Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email