目录 1 数学中的 tanx 与 arctanx 是反函数 2 那么,在计算机中亦如此 3 math.atan() 实例 4 math.atan() 的局限 5 对这种局限的克服 1 数学中的 tanx 与 arctanx 是反函数 2 那么,在计算机中亦如此 # 两个函数的完整表达 slope = math.tan(radians) radians = math.atan(slope) # 参数为直线的斜率:-∞ ~ +∞ 3 math.atan() 实例 import math # import math module math.radians(30) == math.atan(1 / math.sqrt(3