[sympy] Re: Substituting a named Function

2010-09-07 Thread smichr
Your function is f; f(x) is the function evaluated at a point, x. If you want to target f as the the replacement you have to define f separate from the (X) part: f=Function('theta') f(x) theta(x) _.subs(f, sin) sin(x) -- You received this message because you are subscribed to the Google

Re: [sympy] Re: Substituting a named Function

2010-09-07 Thread Aaron S. Meurer
Oh, that does work. I originally thought that it wouldn't. So yeah, then, subs should be able to do whatever you need it to. Aaron Meurer On Sep 7, 2010, at 4:15 PM, smichr wrote: Your function is f; f(x) is the function evaluated at a point, x. If you want to target f as the the