FLINT3.7.0-dev

mag_get_d_log2_approx

Synopsis#include <flint/mag.h>
double mag_get_d_log2_approx(const mag_t x)source

Returns an approximation of log⁡2x\log_2 x, clamped to [COEFF_MIN,COEFF_MAX][\mathrm{COEFF\_MIN}, \mathrm{COEFF\_MAX}], for estimating magnitudes. It is not a rigorous bound.

Cite this page

The FLINT team, “mag_get_d_log2_approx (mag.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/mag/mag_get_d_log2_approx.html (generated 2026-11-02).