

@staticmethod
def exp(expr, assumptions):
    x = expr.args[0]
    if ask(Q.rational(x), assumptions):
        return ask((~ Q.nonzero(x)), assumptions)

dataset/ETHPy150Open sympy/sympy/sympy/assumptions/handlers/sets.py AskRationalHandler.exp/original