FLINT3.7.0-dev

gr_dirichlet_chi_fmpz, gr_dirichlet_chi_vec

Synopsis#include <flint/gr_special.h>
int gr_dirichlet_chi_fmpz(gr_ptr res, const dirichlet_group_t G, const dirichlet_char_t chi, const fmpz_t n, gr_ctx_t ctx)source
int gr_dirichlet_chi_vec(gr_ptr res, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, gr_ctx_t ctx)source

Set res to the value \chi(n) of the Dirichlet character chi of the group G, respectively the values \chi(0), \ldots, \chi(\mathit{len}-1), as complex numbers. These are not methods: they are implemented for complex balls (acb) only and return GR_UNABLE otherwise. Declared only if dirichlet.h is included first.

Cite this page

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