I am writing to ask if R has a build- in function to calculate this polylogarithm Li_n(z) function , also known as the Jonqui?re's function defined as Li_n(z)=sum_(k=1)^infty(z^k)/(k^n) Thanks Andy
On 10-May-10 20:11:39, Jue \(Andy\) Wang wrote:> I am writing to ask if R has a build- in function to calculate this > polylogarithm Li_n(z) function , also known as the Jonqui?re's function > defined as > > Li_n(z)=sum_(k=1)^infty(z^k)/(k^n) > > Thanks > AndyThere is an R package 'gsl' which is a wrapper for the GNU Scientific Library, and the GSL includes the 'polylog' function (and many many other special functions). See: finzi.psych.upenn.edu/R/library/gsl/html/gsl-package.html finzi.psych.upenn.edu/R/library/gsl/html/00Index.html finzi.psych.upenn.edu/R/library/gsl/doc/gslpaper.pdf gnu.org/software/gsl Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk> Fax-to-email: +44 (0)870 094 0861 Date: 11-May-10 Time: 10:26:35 ------------------------------ XFMail ------------------------------