FLINT3.7.0-dev

dirichlet_char_log

Synopsis#include <flint/dirichlet.h>
void dirichlet_char_log(dirichlet_char_t x, const dirichlet_group_t G, ulong m)source

Sets x to the character of number m, which must be coprime to q and reduced modulo q, computing its log by discrete logarithms in each component (with the tables of G if present).

Guides#

Cite this page

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