Try Subs(diff(f, x), x, x0).
Note that mathematically, this should be the same as diff(f,
x).subs(x, x0), because x is a bound (not free) variable in this
expression, it doesn't matter if a different one is used, or if an
expression is used that doesn't use it at all. Note that if you use a
non-variable instead of x0, it will automatically give you the Subs
form (in particular, if you use a number, like diff(f, x).subs(x,
10)). It will also give you the Subs form if you later substitute x0
for a number (in terms of x0, but it doesn't matter because x0 serves
as a dummy variable in this case).
Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/sympy/-/cQScvWEPp9MJ.
> To post to this group, send email to
sy...@googlegroups.com.
> To unsubscribe from this group, send email to
>
sympy+un...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/sympy?hl=en.