> > print f.replace(log(a),log(Abs(a))) # OOPS! prints log(x) instead of > log(|x|) > >> >> It prints `log(Abs(x))` for me in the current git version of sympy. BTW, your earlier examples had symbol being replaced with dummy (though that wasn't defined); if you are actually doing that then the 2nd substitution will no longer find symbol and that substitution will have no effect on f.
-- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/e096f2ac-a0a6-4fa7-aecc-53f208070b86%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
