Wouldn't you just use the .subs() method, or does that not work?

Aaron Meurer
On Jun 13, 2010, at 6:57 AM, Alan Bromborsky wrote:

> How would I do the following:
> 
> I have a generic function:  d_1 = Function('d_1')(x)
> 
> that I apply to another function f in an expression such as y = 
> 5*x_1**2+d_1(f).
> 
> Later I wish to substitute an explicit function such as
> 
> def D_1(f):
>   return(diff(f,x_1))
> 
> for d_1 and have y expanded after the substitution.  For example if f = 
> x_1**2+x_2**2 then
> y = 5*x_1**2+2*x_1
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sympy" 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?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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?hl=en.

Reply via email to