FLINT3.7.0-dev

gr_set_fmpz_2exp_fmpz, gr_get_fmpz_2exp_fmpz

Synopsis#include <flint/gr.h>
int gr_set_fmpz_2exp_fmpz(gr_ptr res, const fmpz_t a, const fmpz_t b, gr_ctx_t ctx)source
int gr_get_fmpz_2exp_fmpz(fmpz_t res1, fmpz_t res2, gr_srcptr x, gr_ctx_t ctx)source

Set res to the dyadic number a \cdot 2^b, respectively write a dyadic x as m \cdot 2^e with m odd (or m = e = 0).

Cite this page

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