def goalify(func):
    def funco(inputs, out):
        if isvar(inputs):
            raise EarlyGoalError()
        else:
            if isinstance(inputs, (tuple, list)):
                return (eq, func(*inputs), out)
            else:
                return (eq, func(inputs), out)
    return funco
Returns ``a**(-1)`` if possible.
dataset/ETHPy150Open logpy/logpy/logpy/goals.py/goalify--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/polys/domains/ring.py/Ring.revert