On Wed, Feb 6, 2013 at 8:46 AM, Matthew Rocklin <[email protected]> wrote:
> Rewrite rules don't respect the canonicalization that happens at expression
> construction time. If this is important to you then inject the `rebuild`
> rule which effectively does type(x)(*map(rebuild, x.args))
>
> Here is my solution to your problem
>
> In [1]: from sympy.rules import chain, rebuild, debug, typed
> In [2]: from sympy.rules.traverse import bottom_up
> In [3]: e = y*(x + 3) - y


Thanks!

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


Reply via email to