#include <cmath> #include <stdlib.h> #include <iostream> using namespace std; const double PI = acos(-1.0); int main ( int argc, char *argv[] ) { double r,w,sita; while(cin>>r>>w>>sita) { double tmp = cos((double)(sita/360*PI)); //cout<<(r+w-r*tmp)/(1-tmp)<<endl; printf("%.3lf/n",(r+w-r*tmp)/(1-tmp)); } return EXIT_SUCCESS; } /* ---------- end of function main ---------- */
hd_Hot girl with cool car
最新推荐文章于 2022-04-06 08:50:45 发布
本文提供了一个使用C++编程语言计算特定数学问题的示例代码。该程序利用了标准数学库来计算给定角度的余弦值,并通过一系列数学运算得出结果。适用于学习C++基本语法和数学函数应用的初学者。
部署运行你感兴趣的模型镜像
您可能感兴趣的与本文相关的镜像
Stable-Diffusion-3.5
图片生成
Stable-Diffusion
Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率
1万+

被折叠的 条评论
为什么被折叠?



