gr_generic_bernoulli_ui, gr_generic_bernoulli_fmpz, gr_generic_bernoulli_vec
Synopsis
#include <flint/gr_generic.h>Defaults of gr_bernoulli_ui and the related functions: in \mathbb{Q}, the exact Bernoulli numbers from bernoulli_fmpq_ui and the global cache of bernoulli; in rings with a real precision, numerical values computed with arb_bernoulli_ui (or arb_bernoulli_fmpz) and converted; otherwise exact rational values converted with gr_set_fmpq, which fails if a denominator is not invertible. gr_generic_bernoulli_fmpz returns GR_UNABLE for huge n in exact rings.
Cite this page
The FLINT team, “gr_generic_bernoulli_ui, gr_generic_bernoulli_fmpz, gr_generic_bernoulli_vec (gr_generic.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_generic/gr_generic_bernoulli_ui.html (generated 2026-10-20).
@misc{flint-doc-gr-generic-gr-generic-bernoulli-ui,
author = {{The FLINT team}},
title = {{gr\_generic\_bernoulli\_ui, gr\_generic\_bernoulli\_fmpz, gr\_generic\_bernoulli\_vec (gr\_generic.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/gr_generic/gr_generic_bernoulli_ui.html},
note = {Generated 2026-10-20}
}