fix domain checking for complex atanh
use sign() function instead of explicitly calculating sign
domain check on complex atan
check for exact values on input to trig functions in deg/grad mode