您正在尝试处理
acos一个
acos不存在的数字。
Acos - Arccosine , which is the inverse of cosine function.
acos的输入值范围为
-1 <= x <= 1。
因此,尝试执行时-
math.acos(1.0000000000000002)您遇到了错误。
如果您尝试使用更高的数字,则将不断出现相同的错误
math.acos(2)--导致-
ValueError: math domain error

您正在尝试处理
acos一个
acos不存在的数字。
Acos - Arccosine , which is the inverse of cosine function.
acos的输入值范围为
-1 <= x <= 1。
因此,尝试执行时-
math.acos(1.0000000000000002)您遇到了错误。
如果您尝试使用更高的数字,则将不断出现相同的错误
math.acos(2)--导致-
ValueError: math domain error