StupidBeauty
Read times:2053Posted at:Sat Dec 17 19:13:25 2011
- no title specified

转载:atan (取反正切函数值)

数学相关的函数定义在数学库头文件<math.h>中,在C++中可包含<cmath>。

http://net.pku.edu.cn/~yhf/linux_c/function/06.html

亮点:


atan
(取反正切函数值)

相关函数

acos asin atan2 cos sin tan

表头文件

#include<math.h>

定义函数

double atan(double x);

函数说明

atan() 用来计算参数 x 的反正切值,然后将结果返回。

返回值

返回 -PI/2 PI/2 之间的计算结果。

附加说明

使用 GCC 编译时请加入 -lm

范例

#include<math.h>
main()
{
double angle;
angle =atan(1);
printf("angle = %f\n",angle);
}

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands