(self)
return self, S.One
Returns this with a positive exponent as a 2-tuple (a fraction).

        Examples
        ========

        >>> from sympy.functions import exp
        >>> from sympy.abc import x
        >>> exp(-x).as_numer_denom()
        (1, exp(x))
        >>> exp(x).as_numer_denom()
        (exp(x), 1)
Returns this with a positive exponent as a 2-tuple (a fraction).
Returns this with a positive exponent as a 2 - tuple ( a fraction ) .
def as_numer_denom(self):
        """
        Returns this with a positive exponent as a 2-tuple (a fraction).

        Examples
        ========

        >>> from sympy.functions import exp
        >>> from sympy.abc import x
        >>> exp(-x).as_numer_denom()
        (1, exp(x))
        >>> exp(x).as_numer_denom()
        (exp(x), 1)
        """
        # this should be the same as Pow.as_numer_denom wrt
        # exponent handling
        exp = self.exp
        neg_exp = exp.is_negative
        if not neg_exp and not (-exp).is_negative:
            neg_exp = _coeff_isneg(exp)
        if neg_exp:
            return S.One, self.func(-exp)
        return self, S.One
def as_numer_denom ( self ) : # this should be the same as Pow.as_numer_denom wrt # exponent handling exp = self . exp neg_exp = exp . is_negative if not neg_exp and not ( - exp ) . is_negative : neg_exp = _coeff_isneg ( exp ) if neg_exp : return S . One , self . func ( - exp ) return self , S . One