'Return the tuple (R, self/R) where R is the positive Rational
extracted from self.
Examples
>>> from sympy import S
>>> (S(-3)/2).as_content_primitive()
(3/2, -1)
See docstring of Expr.as_content_primitive for more examples.'

def as_content_primitive(self, radical=False, clear=True):

    if self:
        if self.is_positive:
            return (self, S.One)
        return ((- self), S.NegativeOne)
    return (S.One, self)
