
数学相关的函数定义在数学库头文件<math.h>中,在C++中可包含<cmath>。
http://net.pku.edu.cn/~yhf/linux_c/function/06.html
亮点:
|
|
|
|
相关函数 |
acos , asin , atan2 , cos , sin , tan |
|
表头文件 |
#include<math.h> |
|
定义函数 |
double atan(double x); |
|
函数说明 |
atan() 用来计算参数 x 的反正切值,然后将结果返回。 |
|
返回值 |
返回 -PI/2 至 PI/2 之间的计算结果。 |
|
附加说明 |
使用 GCC 编译时请加入 -lm |
|
范例 |
#include<math.h> |
HxLauncher: Launch Android applications by voice commands