dirichlet_chi
Synopsis
#include <flint/dirichlet.h>ulong dirichlet_chi(const dirichlet_group_t G, const dirichlet_char_t chi, ulong n)sourceReturns the exponent of \chi(n) modulo G->expo, or DIRICHLET_CHI_NULL if \gcd(n, q) > 1. Costs one discrete logarithm per component of G.
Guides#
Cite this page
The FLINT team, “dirichlet_chi (dirichlet.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dirichlet/dirichlet_chi.html (generated 2026-10-20).
@misc{flint-doc-dirichlet-dirichlet-chi,
author = {{The FLINT team}},
title = {{dirichlet\_chi (dirichlet.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/dirichlet/dirichlet_chi.html},
note = {Generated 2026-10-20}
}