acb_dirichlet_lerch_phi, acb_dirichlet_lerch_phi_direct, acb_dirichlet_lerch_phi_integral
#include <flint/acb_dirichlet.h>void acb_dirichlet_lerch_phi(acb_t res, const acb_t z, const acb_t s, const acb_t a, slong prec)sourcevoid acb_dirichlet_lerch_phi_direct(acb_t res, const acb_t z, const acb_t s, const acb_t a, slong prec)sourcevoid acb_dirichlet_lerch_phi_integral(acb_t res, const acb_t z, const acb_t s, const acb_t a, slong prec)sourceSet res to the Lerch transcendent \Phi(z,s,a) = \sum_{k=0}^{\infty} z^k (k+a)^{-s}, analytically continued to |z| \ge 1. The direct version sums the truncated series; the integral version uses a Hankel contour integral; the default version checks special cases that reduce to the Hurwitz zeta function or polylogarithms and otherwise chooses between the two.
The integral representation is
with the path deformed as needed to avoid the poles and branch cuts of the integrand.
The FLINT team, “acb_dirichlet_lerch_phi, acb_dirichlet_lerch_phi_direct, acb_dirichlet_lerch_phi_integral (acb_dirichlet.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb_dirichlet/acb_dirichlet_lerch_phi.html (generated 2026-10-20).
@misc{flint-doc-acb-dirichlet-acb-dirichlet-lerch-phi,
author = {{The FLINT team}},
title = {{acb\_dirichlet\_lerch\_phi, acb\_dirichlet\_lerch\_phi\_direct, acb\_dirichlet\_lerch\_phi\_integral (acb\_dirichlet.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/acb_dirichlet/acb_dirichlet_lerch_phi.html},
note = {Generated 2026-10-20}
}