numpy.arctan和math.atan结果的取值范围相同,为-90度到90度,而math.atan2结果的取值范围为-180度到180度。 因此,繁荣之门所需的结果必须超过-90度到90度的范围。 必须使用math.atan2函数。 举个例子:
角度1=NP.arctan (-3.125 ) )。
angle2=math.atan(-3.125 ) ) ) ) ) ) ) ) ) ) ) ) ) ) )。
angle3=math.Atan2(100,-32 ) ) ) ) ) ) ) ) ) ) ) ) ) ) )。
结果为angle1=angle2=-72.25532837494306,angle3=107.74467162505692