数学函数 - asin

原型:extern float asin(float x);

用法:#include <math.h>

功能:求x(弧度表示)的反正弦值

说明:x的定义域为[-1.0,1.0],值域为[-π/2,+π/2]。

举例:


      // asin.c
      
      #include <syslib.h>
      #include <math.h>

      main()
      {
        float x;
        
        clrscr();        // clear screen
        textmode(0x00);  // 6 lines per LCD screen
        
        x=0.32;
        printf("asin(%.2f)=%.4f",x,asin(x));
        
        getchar();
        return 0;
      }
      
  
相关函数:acos,atan,atan2,sin,cos,tan