but in this case if a="x+x+y"
and b="2*x+y" than also it will return true ,which is not what i want.

In my requirement "x+x+y" and "2*x+y" are different (as here we are adding
both x ,doing one operation)
but "x+x+y" and "x+y+x" are same ( order doesnt matter ,and addition and
multiplication are commutative)

On Fri, Nov 11, 2011 at 1:46 PM, Chris Smith <[email protected]> wrote:

> Is there any reason not to check equality with simplify(a) ==
> simplify(b), then? This will automatically evaluate them for you.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" 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?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en.

Reply via email to