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 xx to the character of number mm, which must be coprime to qq and reduced modulo qq, computing its log by discrete logarithms in each component (with the tables of GG 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-11-02).