FLINT3.7.0-dev

mag_set_d_2exp_fmpz, mag_set_fmpz_2exp_fmpz, mag_set_ui_2exp_si

Synopsis#include <flint/mag.h>
void mag_set_d_2exp_fmpz(mag_t res, double x, const fmpz_t y)source
void mag_set_fmpz_2exp_fmpz(mag_t res, const fmpz_t x, const fmpz_t y)source
void mag_set_ui_2exp_si(mag_t res, ulong x, slong y)source

Set res to an upper bound for |x| \cdot 2^y.

Guides#

Cite this page

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