
acos函式
acos函式是反余弦函式,是三角函式中的一员
基本介绍
- 中文名:acos函式
- 功 能:反余弦函式
- 用 法:double acos(double x);
- 函式值範围: [0,π]
函式名: acos
程式例:
#include <stdio.h>
#include <math.h> int main(void)
{
double result;
double x = 0.5; result = acos(x);
printf("The arc cosine of %lf is %lf\n", x, result);
return 0;
}
-1.0为π, 1为0。