Updates:
        Status: Started

Comment #10 on issue 2026 by ronan.l...@gmail.com: Exact, algebraic, and integer_power substitution
http://code.google.com/p/sympy/issues/detail?id=2026

In https://github.com/rlamy/sympy/commits/matching, I implemented atomic substitution as .replace(). Syntactic sugar aside, it takes a dictionary like {old1: new1, ...} and basically does the following:
    def replace(self, repl_dict):
        if self in repl_dict:
            return repl_dict[self]
        else:
            return self.func(*[arg.replace(repl_dict) for arg in self.args])

The difference with .subs() is that it doesn't consider the meaning of the args at all and that it does the replacements in a single pass.

--
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.

Reply via email to