Comment #23 on issue 2026 by ronan.l...@gmail.com: Exact, algebraic, and integer_power substitution
http://code.google.com/p/sympy/issues/detail?id=2026
I updated my branch (cf. comments 10, 12, 14). It's still at https://github.com/rlamy/sympy/commits/matching. The method is now called xreplace (I couldn't think of a good name) and its interface is as simple as possible: it only takes a dict-like object representing a replacement rule.
Comparing with the implementation of replace() raises an important question: should this work in top-down or bottom-up order? (xreplace is top-down, replace is bottom-up) I guess we probably need both orders, just like we have both preorder_traversal and postorder_traversal.
-- You received this message because you are subscribed to the Google Groups "sympy-issues" group. To post to this group, send email to sympy-issues@googlegroups.com. To unsubscribe from this group, send email to sympy-issues+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy-issues?hl=en.