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