请输入您要查询的百科知识:

 

词条 atan
释义

函数名: atan

功 能: 反正切函数

用 法: double atan(double x);

程序例:

#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\", x, result);

return(0);

}

当x=1时

#include<iostream>

#include<cmath>

using namespace std;

int main()

{

const double pi=4.0*atan(1.0);

printf("%lf",pi*1);

return 0;

}

输出结果为圆周率。

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/27 9:39:30