Comment #2 on issue 2361 by [email protected]: Mul.flatten needs to watch for the unevaluated Mul
http://code.google.com/p/sympy/issues/detail?id=2361

I guess you are right. To check that in a test, however, you either have to build an unevaluated mul or compare something like fraction of the lhs and rhs:

    a=S(9)/4*z/(1-x) # a result
    b=9*z/(4*(1-x))  # the test
    a == b
    False
    fraction(a) == fraction(b)
    True

But this needs to be fixed:

    >>> u=Mul(2,1+x,evaluate=0)
    >>> 2+u
    2 + 2 + 2*x

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

Reply via email to