#include <math.h>
double atan( double arg );
返回参数 arg 的反正切值。
#include <stdio.h> #include <math.h> int main(void) { double result; double x = 0.5; result = atan(x); printf("The arc tangent of %lf is %lf\n", x, result); return(0); }
输出结果:
The arc tangent of 0.500000 is 0.463648