lambdify and implemented_function are best if you intend to evaluate these numerically. Otherwise, just use a regular Python function. Alternately, just use the symbolic expression and use subs to substitute in exact values.
Aaron Meurer On Thu, Nov 29, 2012 at 9:19 PM, Shriramana Sharma <[email protected]> wrote: > Hello. I need to create a function: > > Pplus(i,t) = t**i * summation((-1)**(i+j)*binomCoeff(i,j)*Pval(j),(j,0,i)) > > After which I need to define a function: > > P(t)=summation(Pplus(i,t),(i,0,n)) > > After which I'll need to do: > > sqareaP=integrate(P(t)**2,(t,0,1)) > > I am wondering whether for this I should define Python functions using > def Pplus(i,t) and def P(t) or I should define symbolic functions > using lambdify and implemented_function. Sorry if I sound lost, > because I *am* lost -- I am not yet able to figure out the SymPy way > of doing things. > > -- > Shriramana Sharma > > -- > 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.
