codecamp

atan

 原型:extern float atan(float x);
 
 用法:#include <math.h>
 
 功能:求x(弧度表示)的反正切值
 
 说明:值域为(-π/2,+π/2)。
 
 举例:


     // atan.c
     
     #include <syslib.h>
     #include <math.h>
     main()
     {
       float x;
       
       clrscr();        // clear screen
       textmode(0x00);  // 6 lines per LCD screen
       
       x=0.32;
       printf("atan(%.2f)=%.4f",x,atan(x));
       
       getchar();
       return 0;
     }


asin
atan2
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

alloi动态内存

stdio输入输出函数

stdlib基础库函数

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }