代碼示例:
/*atanexample*/
#include<stdio.h>/*printf*/
#include<math.h>/*atan*/
#definePI3.14159265
intmain()
{
doubleparam,result;
param=1.0;
result=atan(param)*180/PI;//將弧度轉換為度
printf("Thearctangentof%fis%fdegrees.\n",param,result);
return0;
}
代碼示例:
/*atanexample*/
#include<stdio.h>/*printf*/
#include<math.h>/*atan*/
#definePI3.14159265
intmain()
{
doubleparam,result;
param=1.0;
result=atan(param)*180/PI;//將弧度轉換為度
printf("Thearctangentof%fis%fdegrees.\n",param,result);
return0;
}