The Polylogarithm Function in Julia

Matthew Roughan
10/16/2020
5 citations
math.NAcs.MS

Official code: Expander/polylogarithm (38 stars, C++, MIT, last commit 2025-08-06). 1 more implementation below.

Abstract

The polylogarithm function is one of the constellation of important mathematical functions. It has a long history, and many connections to other special functions and series, and many applications, for instance in statistical physics.

Show full abstract

However, the practical aspects of its numerical evaluation have not received the type of comprehensive treatments lavished on its siblings. Only a handful of formal publications consider the evaluation of the function, and most focus on a specific domain and/or presume arbitrary precision arithmetic will be used. And very little of the literature contains any formal validation of numerical performance. In this paper we present an algorithm for calculating polylogarithms for both complex parameter and argument and evaluate it thoroughly in comparison to the arbitrary precision implementation in Mathematica. The implementation was created in a new scientific computing language Julia, which is ideal for the purpose, but also allows us to write the code in a simple, natural manner so as to make it easy to port the implementation to other such languages.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
Expander/polylogarithmOfficial38C++MIT2025-08-06
mroughan/Polylogarithms.jlOfficial12JuliaMIT2026-01-08
MIT

Implementation of polylogarithms in C/C++/Fortran

385C++, CSep 11, 20151 years agoMIT
ccpluspluscppfortranmath+3 more
MIT

Polylogarithm function and related special functions and sequences.

126JuliaAug 3, 202010 months agoMIT
juliamathspecial-functions

Similar Papers

Cite this paper

@article{roughan2020polylogarithm,
  title  = {The Polylogarithm Function in Julia},
  author = {Matthew Roughan},
  year   = {2020},
  eprint = {2010.09860},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.09860}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2010.09860.svg)](https://codeofpaper.com/paper/2010.09860)

Discussion