Comment #15 on issue 2956 by smi...@gmail.com: Simetimes the test_hyperexpand.py (test_meijerg_shift_operators) fails in master.
http://code.google.com/p/sympy/issues/detail?id=2956

That's not a S bug (IMO). Mul works from left to right and when it gets the "2 arg mul" first, it distributes the Rational. Is this S(repr(foo)) used somewhere in the tests or in the code? Because the fix (if you don't want that distributing) is to remove the constant with as_coeff_Mul and then put it back afterwards.

(5*z+5)/z
(5*z + 5)/z
2*_
2*(5*z + 5)/z
eq=_
c, t = eq.as_coeff_Mul()
c*S(repr(t))
2*(5*z + 5)/z


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to