The following behavior should probably be documented as a feature of
pattern matching or raised as an issue:

###
>>> x=Symbol('x',dummy=True);b=Wild('b',exclude=[x]);(3*x).match(x/b)
{b_: 3}
###

I would have expected the result to be {b_:1/3}. So it appears that
match() is only meant to work with multiplicative constants. Additive
and subtractive constants are respected, however:

###
>>> (x-3).match(x+b)
{b_: -3}
>>> (x-3).match(x-b)
{b_: 3}
###

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

Reply via email to