Updates:
Status: Fixed
Comment #1 on issue 1549 by [email protected]: substitutions in formal
derivatives don't work well
http://code.google.com/p/sympy/issues/detail?id=1549
This works now:
In [10]: h = f(x).subs(x, x**2).diff(x) * (x + 1/x)
In [11]: h
Out[11]:
⎛ 1⎞ ⎛ d ⎞│
2⋅x⋅⎜x + ─⎟⋅⎜───(f(ξ₁))⎟│ 2
⎝ x⎠ ⎝dξ₁ ⎠│ξ₁=x
In [12]: h.subs(f(x**2), 1)
Out[12]:
⎛ 1⎞ ⎛ d ⎞│
2⋅x⋅⎜x + ─⎟⋅⎜───(f(ξ₁))⎟│ 2
⎝ x⎠ ⎝dξ₁ ⎠│ξ₁=x
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy-issues?hl=en.