FLINT3.7.0-dev

gr_dirichlet_hardy_theta, gr_dirichlet_hardy_z

Synopsis#include <flint/gr_special.h>
int gr_dirichlet_hardy_theta(gr_ptr res, const dirichlet_group_t G, const dirichlet_char_t chi, gr_srcptr t, gr_ctx_t ctx)source
int gr_dirichlet_hardy_z(gr_ptr res, const dirichlet_group_t G, const dirichlet_char_t chi, gr_srcptr t, gr_ctx_t ctx)source

Set res to the Hardy theta function \theta(t) and Hardy Z-function Z(t) of the character chi, defined so that Z(t) = e^{i \theta(t)} L(1/2 + it, \chi) is real for real t, with the same rings as gr_dirichlet_l.

Cite this page

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