C语言库atan()函数

#include stdio.h#include math.h#define PI 3.14159265int main () {double x, ret, val;x = 1.0;

编程学习网为您整理以下代码实例,主要实现:C语言库atan()函数,希望可以帮到各位朋友。

#include <stdio.h>
#include <math.h>

#define PI 3.14159265

int main () {
   double x, ret, val;
   x = 1.0;
   val = 180.0 / PI;

   ret = atan (x) * val;
   printf("The arc tangent of %lf is %lf degrees", x, ret);

   return(0);
}

本文标题为:C语言库atan()函数

上一篇: C语言库cos()函数
下一篇: C语言库asin()函数

基础教程推荐