Comment #25 on issue 2026 by asmeurer: Exact, algebraic, and integer_power
substitution
http://code.google.com/p/sympy/issues/detail?id=2026
Your function is good, except it uses "in", so I think it really needs
issue 2389 to be fixed to be as semantically dumb as possible.
Otherwise, I think this will do for the exact/atomic subs. Regarding
naming, how about calling it something like that? Like exact_subs,
exact_replace, atomic_subs, atomic_replace, replace_exact, subs_exact,
subs_atomic, replace_atomic,...
Atomic is maybe not the best, so probably we should stick with the "exact"
variants. Is this what you meant by the "x"?
Anyway, "xreplace" doesn't really sound very good.
How do you see subs() fitting into the world of replace, xreplace (or
whatever we call it), and also the various "hints" to subs that I think we
should have (including the integer_power substitution suggested on this
issue)? With your patch we have:
xreplace: very stupid
replace: very smart
subs: somewhere in between
(more or less)
--
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.