FLINT3.7.0-dev

gr_rfac, gr_rfac_ui, gr_rfac_fmpz, gr_rfac_vec

Synopsis#include <flint/gr_special.h>
int gr_rfac(gr_ptr res, gr_srcptr x, gr_ctx_t ctx)source
int gr_rfac_ui(gr_ptr res, ulong x, gr_ctx_t ctx)source
int gr_rfac_fmpz(gr_ptr res, const fmpz_t x, gr_ctx_t ctx)source
int gr_rfac_vec(gr_ptr res, slong len, gr_ctx_t ctx)source

Set res to the reciprocal factorial 1/x! = 1/\Gamma(x+1), and the vec version to 1/0!, \ldots, 1/(\mathit{len} - 1)!; GR_DOMAIN if a factorial is not invertible in the ring.

Cite this page

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