>>> import math >>> math.acos(math.pi/2) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: math domain error