FLINT3.7.0-dev

mag_neg_log, mag_neg_log_lower

Synopsis#include <flint/mag.h>
void mag_neg_log(mag_t res, const mag_t x)source
void mag_neg_log_lower(mag_t res, const mag_t x)source

Set res to an upper, respectively lower, bound for −log⁡(min⁡(1,x))-\log(\min(1, x)), which is ∣log⁡x∣|\log x| for x≤1x \le 1. The value for x=0x = 0 is +∞+\infty.

Cite this page

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