阅读(4393) (0)

asin

2015-11-11 15:24:55 更新

 原型: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;
     }