C# - 为什么 Math.Atan(1) != 接近 45

标签 c# math

这里还有一篇关于 Atan 的帖子,但我没有看到任何相关的答案:

C# - Why Math.Atan(Math.Tan(x)) != x?

Math.Atan 和 tan-1 不一样吗?在我的计算器上我这样做:

tan-1(1) and i get 45.

tan(45) = 1

在 C# 中:

Math.Atan(1) = 0.78539816339744828 // nowhere near the 45.

Math.Tan(45) = 1.6197751905438615 //1 dp over the < Piover2.

这里发生了什么?

最佳答案

C# 将角度视为弧度;你的计算器正在使用度数。

关于C# - 为什么 Math.Atan(1) != 接近 45,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1564207/

相关文章:

javascript - 从 Xamarin C# 应用程序将图像上传到 Node JS 服务器上的 Multer

python - 组合函数以产生所需的整数输出

python - 矩阵线性组合的系数

javascript - Chart.js。取值范围很大。最小值不可用

algorithm - 如何以非迭代方式将盒子分散到另一个盒子中?

C# 编码 Shift-JIS 与 utf8 html 敏捷包

c# - WPF 进度条未显示正确的进度

javascript - 如何判断文本框在C#中是否仅包含空格?

c# - HTMLAgility 加速 webget

c# - 这个 if 语句有多少种组合