Comment #2 on issue 1601 by smichr: match trouble and tutorial
http://code.google.com/p/sympy/issues/detail?id=1601
That's useful to know about the ordering issue...just to be precise, the
terms of the
pattern and the expression are procesed in reverse order of how they come
out of
args, so,
for w in reversed(pattern.args):
etc...
As far as whether to match that remaining x after matching the
sin(x)...that's, I
believe, the same sort of issue you have with greedy or non-greedy regex.
If the
first pattern takes the maximal bite then there may be nothing left for
other parts
of the pattern. I think that's why it goes term-wise.
/c
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---