Sin Function


  • It is used for getting the Sine value of the argument .
  • The value of the argument should be in Radian .

  • Syntax:

    float sinf(float arg);
    
    double sin(double arg);
    
    long double sinl(long double arg);

    Example:

    #include <math.h>
    #include <stdio.h>
    
      int main()
      {
        double x = -2.0;
    
        do {
          printf("Sine of %f is %f.\n", x, sin(x));
          x += 0.2;
        } while(x<=2.0);
    	
        return 0;
    	
      }
         
    Back