Updates: Status: Fixed Labels: Printing
Comment #2 on issue 1527 by asmeurer: bug in the printer (function + subs) http://code.google.com/p/sympy/issues/detail?id=1527 This was fixed with the commit commit aeb80f87a16fad38ffc44b18aa52d739519e003b Author: Chris Smith <smi...@gmail.com> Date: Mon Sep 6 10:07:26 2010 +0545 2049: don't set evaluate to True when doing subs If you want doit done then you have to do so after the subs or write a custom routine to do so for you. In [1]: F = Function('F') In [2]: x, y, t = symbols('x y t') In [3]: a = Symbol('a', Real=True) In [4]: eq = Derivative(F(x, t), x) In [5]: eq Out[5]: d ──(F(x, t)) dx In [6]: pat = -33*t*x + F(x + exp(-t)) In [7]: pat Out[7]: ⎛ -t⎞ -33⋅t⋅x + F⎝x + ℯ ⎠ In [8]: sub = eq.subs(F(x, t), pat) In [9]: sub Out[9]: d ⎛ ⎛ -t⎞⎞ ──⎝-33⋅t⋅x + F⎝x + ℯ ⎠⎠ dx -- 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.