FLINT3.7.0-dev

acb_dirichlet_chi

Synopsis#include <flint/acb_dirichlet.h>
void acb_dirichlet_chi(acb_t res, const dirichlet_group_t G, const dirichlet_char_t chi, ulong n, slong prec)source

Sets res to \chi(n), which is 0 if \gcd(n, q) > 1 and a root of unity otherwise.

Cite this page

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