I am trying to calculate the: polylog(3/2, z).
I have run both:
syms z
feval(symengine, 'polylog', 3/2, z)
or
evalin(symengine, 'polylog(3/2, z)')
and every time I take: MuPAD error: Error: The first argument must be an integer. [polylog].
But I want the first argument to be 3/2. So how can I face it? I run MATLABR2013a. Thank you in advance!

 Accepted Answer

The documentation for polylog is clear that the first argument must be an integer. If you need a non-integer then you will need to use the definition of polylog, coding a symsum
syms k
PLz = symsum(z^k/k^(3/2), k=1..inf);

3 Comments

Yes thank you very much! In my version the expression that is accepted is:
PLz = symsum(z^k/k^(3/2), k,1,inf)
but still what I get is:
sum(z^k/k^(3/2), k == 1..Inf)
which doesn't help. Do you know how can I get an analytical form of the result? Thanks again!
symsum(z^k/k^(3/2), k,1,inf) is the analytical form of the result, at least for abs(z) <= 1. If abs(z) is outside that range then the analytic form involves infinite integrals.
Yes I see, thank you very much!

Sign in to comment.

More Answers (1)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!