when calculating generating function, there is a need to do summation of ,
summation(f(x)*z^n/n!, n=0..infinity)
what algorithm do maple use to do this awesome work?
when calculating generating function, there is a need to do summation of ,
summation(f(x)*z^n/n!, n=0..infinity)
what algorithm do maple use to do this awesome work?
Copyright © 2021 JogjaFile Inc.
Do you really mean
f(x)(wherexis a function of neitherznorn) rather thanf(z)orf(z,n)?!If you really mean f(x) then the result is just
f(x)*exp(z), the computation of which is not especially awesome.To make the question interesting let's suppose that you actually meant,
where
f(z,n)is an explicit expression and not just some function call of unknownf.The help-page for SumTools (which
sumcalls) mentions that Gosper's algorithm for indefinite summation and Zeilberger's algorithm are its principal methods. And you can find quite a lot about them via google. See this, perhaps.If you want to see Maple at work on a particular example then you can step through most of it in the Maple debugger or you can adjust various reporting mechanisms so as to get more verbose computations. Eg,
Yet another mechanism is to set
printlevelhigh (say, 25) but doing so may just producing a flood of output that you find confusing.Your example's index's upper value was
infinity. But for upper index valueK, say, the code can go through LRETools and so perhaps see the reference at the bottom of this page.