FLINT3.7.0-dev

dirichlet_char_eq, dirichlet_char_eq_deep

Synopsis#include <flint/dirichlet.h>
int dirichlet_char_eq(const dirichlet_char_t x, const dirichlet_char_t y)source
int dirichlet_char_eq_deep(const dirichlet_group_t G, const dirichlet_char_t x, const dirichlet_char_t y)source

Return 1 if x and y are equal, otherwise 0. The first function compares the numbers only; the second also compares the logs and is meant for testing the consistency of the two representations.

Cite this page

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