当前位置:
首页 >
atan(正切函数)
发布时间:2024/6/21
61
生活家
生活随笔
收集整理的这篇文章主要介绍了
atan(正切函数)
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
atan函数:返回数值的余切值
原型:double atan(double x)
<pre name="code" class="cpp">#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double PI = 4.0*atan(1.0);
double r;
while(cin>>r)
{
cout<<"PI = 4.0*atan(1.0) = "<<PI<<endl; // 求pi值
cout<<PI*r*r<<endl;
int sita;
sita = r; //圆的面积
cout<<tan(sita/180*PI)<<endl; //输入角度,求tan值;
}
return 0;
}
总结
以上是生活随笔为你收集整理的atan(正切函数)的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 低糖的水果(这些水果超甜却低糖!)
- 下一篇: 游戏天地(游戏天地:我的世界)