C标准库之数学函数atan2
功能:求x/y的反正切值函数原型:double atan2(double x);
要求:
函数需要的头文件
atan2<math.h>
参数:
参数说明
x双精度弧度值
返回值:x/y的反正切值
举例:#include <stdio.h>
#include <float.h>
#include <ctype.h>
#include <math.h>
int main()
{
double m = 1,n = 4,x; //为变量赋初值
x = atan2(m,n) ; //求x/y的反正切值
printf("%f\n",x);
}
页:
[1]