FLINT3.7.0-dev

gr_hilbert_class_poly

Synopsis#include <flint/gr_special.h>
int gr_hilbert_class_poly(gr_ptr res, slong D, gr_srcptr x, gr_ctx_t ctx)source

Sets res to the value H_D(x) of the Hilbert class polynomial for the discriminant D at x. If ctx is a gr_poly ring and x its generator, the polynomial itself is returned. GR_DOMAIN if D is not a negative discriminant. The default computes H_D with acb_modular_hilbert_class_poly and evaluates it, so it works in any ring.

Cite this page

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