mag_set_d, mag_set_ui, mag_set_fmpz
Synopsis
#include <flint/mag.h>Set res to an upper bound for |x|. The result can be larger than |x| even when |x| is representable: mag_set_d always adds one unit in the 30th bit. A NaN double gives +\infty.
Guides#
- Using acb_hypgeom (
acb_hypgeom) - Computing bounds with mag
Cite this page
The FLINT team, “mag_set_d, mag_set_ui, mag_set_fmpz (mag.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mag/mag_set_d.html (generated 2026-10-20).
@misc{flint-doc-mag-mag-set-d,
author = {{The FLINT team}},
title = {{mag\_set\_d, mag\_set\_ui, mag\_set\_fmpz (mag.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/mag/mag_set_d.html},
note = {Generated 2026-10-20}
}