(rv)
return rv.normal().factor().expand()
Simplification of rational polynomials, trying to simplify
    the expression, e.g. combine things like 3*x + 2*x, etc....
Simplification of rational polynomials, trying to simplify
    the expression, e.g. combine things like 3*x + 2*x, etc....
Simplification of rational polynomials trying to simplify the expression e . g . combine things like 3 * x + 2 * x etc ....
def TR0(rv):
    """Simplification of rational polynomials, trying to simplify
    the expression, e.g. combine things like 3*x + 2*x, etc....
    """
    # although it would be nice to use cancel, it doesn't work
    # with noncommutatives
    return rv.normal().factor().expand()
def TR0 ( rv ) : # although it would be nice to use cancel, it doesn't work # with noncommutatives return rv . normal ( ) . factor ( ) . expand ( )