Comment #2 on issue 2197 by [email protected]: differentiate in nested functions
http://code.google.com/p/sympy/issues/detail?id=2197

ok, your solution works in this case, but doesn't quite do whot i want, for example for Fz(z*L) it would give a wrong result

i found a workaround myself now

import sympy as sp
sp.var("E,F,Er,El,k,z,L,dz")
Ez = lambda z: Er*sp.exp(sp.I*k*z)+El*sp.exp(-sp.I*k*z)
Fz = lambda z: (Ez(dz).diff(dz)).subs({dz:z})

but i was really looking for some way to force sympy to evaluate the function and only put this evaluated form in the new function, but i realize now that the original code can't work, the way i wrote it

maybe i sleep over the next problem a night, to avoid such posts :D

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

Reply via email to