Comment #4 on issue 1460 by [email protected]: match is not respecting
symbol in denominator
http://code.google.com/p/sympy/issues/detail?id=1460
This is the current state in master for me (py 2.7, 32-bit):
(3*x).match(w*y)
{w_: 3, y_: x}
(3*x).match(w/y)
(3/x).match(w*y)
{w_: 3, y_: 1/x}
(3/x).match(w/y)
{w_: 3, y_: x}
(x/3).match(w*y)
{w_: 1/3, y_: x}
(x/3).match(w/y)
With the changes of the PR above, these are the results:
(3*x).match(w*y)
{w_: 3, y_: x}
(3*x).match(w/y)
{w_: x, y_: 1/3}
(3/x).match(w*y)
{w_: 3, y_: 1/x}
(3/x).match(w/y)
{w_: 3, y_: x}
(x/3).match(w*y)
{w_: 1/3, y_: x}
(x/3).match(w/y)
{w_: x, y_: 3}
--
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.