sympy__sympy-20322
Inconsistent behavior for sympify/simplify with ceiling
Verdict: the issue text repeats lines of the gold patch (Tier C).
This diff will do it: ```diff diff --git a/sympy/simplify/radsimp.py b/sympy/simplify/radsimp.py index 4609da209c..879ffffdc9 100644 --- a/sympy/simplify/radsimp.py +++ b/sympy/simplify/radsimp.py @@ -1074,7 +1074,14 @@ def fraction(expr, exact=False): numer, denom = [], [] - for term in Mul.make_args(expr): + def mul_args(e): + for term in Mul.make_args(e): + if term.is_Mul: + yield from mul_args(term) + else: + yield term + + for term in mul_args(expr):
16 of 21 added patch lines appear in the issue or discussion.
All SWE-bench Lite tasks · more sympy/sympy tasks · How the check works