On 27.04.2013 18:58, unruh wrote:
> On 2013-04-27, Peter Luschny <
peter....@gmail.com> wrote:
>>>> ge := n -> 2^(2*n+1)*LerchPhi(-1,-n,1/2);
>>>> seq(evalf(ge(n),32),n=1..4);
>>>> What I get with my old Maple V from the last millennium:
>>>> 0, -2.0640982037247673078030113720681, 0,
>>>> 40.154279645840000687655931363154
>>>> What I expected was:
>>>> 0, -4, 0, 80,
>>> The same in Maple 17 (and with higher precision). However the
>>> help says "If a is a non-positive integer, LerchPhi(z, a, v)
>>> is a rational function of z ?with a pole of order 1 - a at ?z = 1
>>> Now LerchPhi(z,-n,1/2); convert(%, Sum, dummy=k); gives
>>> Sum(z^k*(1/2+k)^n,k = 0 .. infinity), then feeding your
>>> data and evaluating gives your desired results.
>>
>> Axel, thank you!
>>
>> In other words this is a bug for more than 15 years.
>
> Is it a bug, or a choice of a different branch cut? I do not know what
> the structure is of the function.
http://www.wolframalpha.com/input/?i=32*LerchPhi(-1,-2,1/2)
gives -4, yes. But that may be false. Hm ...
May be you are right: LerchPhi(z,s,v) is defined as power series
in z for abs(z) < 1,
http://dlmf.nist.gov/25.14 ( = Erdelyi ) and
the analytic extension is *not* defined for s = negative integer,
1/GAMMA(s)*Int(t^(s-1)*exp(-t*(v-1))/(exp(t)-z),t = 0 .. infinity)
and branch cut = Reals beyond 1 (like for hypergeomtric 2F1)
However if I write as a rational function (in the disc), then I do
not care at all for branch cuts (only for poles).
But z=-1 is not on the branch cut, I guess it is extenting in *s*
In Erdelyi Vol 1 page 30 there is a formula (11) which holds for
negative integers s, LerchPhi(z,-m,v) = m!/z^v*ln(1/z)^(-(m+1)) -
1/z^v*Sum(bernoulli(m+k+1,v)/k!/(m+k+1) * ln(z)^k, k=0..infinity)
But I get inconsistent results (though I checked, that his notion
of Benoulli is the same in Maple).