Test whether self and other have the same exponent or whether both are NaN.
same_quantum(other, context=None)