这里还有一篇关于 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/