'See the simplify function in sympy.simplify'

def simplify(self, ratio=1.7, measure=None):

    from sympy.simplify import simplify
    from sympy.core.function import count_ops
    measure = (measure or count_ops)
    return simplify(self, ratio, measure)
