Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获得正确的 TAN(X) 值?
假设 TAN 为 27.2。
预期:0.51301,正如科学计算器正确给出的那样
0.51301
相反,像 Python 甚至 Excel 这样的语言-1.8459788894
-1.8459788894
我尝试转换-1.845979,rad_to_deg然后我得到-105.7668. 我还尝试-1.845979使用deg_to_radwhich 结果转换为-0.0322184.
-1.845979
rad_to_deg
-105.7668
deg_to_rad
-0.0322184
您需要将角度转换为弧度,而不是无单位的结果。
tan(deg_to_rad(27.2))
27.2°是0.4747 弧度:tan(0.4747rad)