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 > Andy
There 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: http://finzi.psych.upenn.edu/R/library/gsl/html/gsl-package.html http://finzi.psych.upenn.edu/R/library/gsl/html/00Index.html http://finzi.psych.upenn.edu/R/library/gsl/doc/gslpaper.pdf http://www.gnu.org/software/gsl Ted. -------------------------------------------------------------------- E-Mail: (Ted Harding) <ted.hard...@manchester.ac.uk> Fax-to-email: +44 (0)870 094 0861 Date: 11-May-10 Time: 10:26:35 ------------------------------ XFMail ------------------------------ ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.