FLINT3.7.0-dev

acb_dirichlet_l_fmpq, acb_dirichlet_l_fmpq_afe

Synopsis#include <flint/acb_dirichlet.h>
void acb_dirichlet_l_fmpq(acb_t res, const fmpq_t s, const dirichlet_group_t G, const dirichlet_char_t chi, slong prec)source
void acb_dirichlet_l_fmpq_afe(acb_t res, const fmpq_t s, const dirichlet_group_t G, const dirichlet_char_t chi, slong prec)source

Set res to L(s,\chi) for rational s. The afe version uses the approximate functional equation, a rapidly convergent series of incomplete gamma functions (evaluated by binary splitting and the bit-burst algorithm), which is fastest at very high precision or large modulus; the default version uses it when this is estimated to be faster and otherwise calls acb_dirichlet_l.

Cite this page

The FLINT team, “acb_dirichlet_l_fmpq, acb_dirichlet_l_fmpq_afe (acb_dirichlet.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb_dirichlet/acb_dirichlet_l_fmpq.html (generated 2026-10-20).