Asin Function

  • It is used for getting the Arc Sine value of the argument .
  • The value of the argument should be in between -1 and 1 .

  • Syntax :
    float asinf(float arg);
    
    		    double asin(double arg);
    
                        long double asinl(long double arg);



    Example

    
    #include <math.h>
    
    #include <stdio.h>
    
      int main() {
    
    	double x = -1.0;
    
    	do {
    
    		printf("Arc sine of %f is %f.\n", x, asin(x));
    
    		x += 0.1;
    
    	}
    
    	while(x<=1.0);
    
    	return 0;
    
    }
    
    

    Output




    Change the example accordingly and find out the outputs for differnet datatypes !!