On Sun, Nov 18, 2012 at 9:27 PM, Shriramana Sharma <samj...@gmail.com>wrote:

> On Sun, Nov 18, 2012 at 8:54 PM, Chris Smith <smi...@gmail.com> wrote:
> >>>> lamb = Function('lamb')
>
> Hey very nice, but I actually want to later on substitute values for
> lamb0..3, and if lamb is an undefined function as the above, how do I
> do that?
>
>
>>> f=Function('f')
>>> f(1)+f(2)
f(1) + f(2)
>>> _.replace(f, lambda x: x**2)
5
>>>



> BTW as and when I use SymPy I am slowly coming to think that
> successful use of SymPy involves use of both Python and SymPy
> semantics, right? If I do the summation manually i.e. using Py
> semantics, it's quite straightforward, but my query is how to do it
> using SymPy's summation semantics.
>
>
I'm not sure what you mean. Using summation is ding it with sympy
semantics. Perhaps you can post the way you think is un-sympy-ish.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com.
To unsubscribe from this group, send email to 
sympy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to