FLINT3.7.0-dev

arf_log, arf_log2, arf_log10, arf_log1p

Synopsis#include <flint/arf.h>
int arf_log(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_log2(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_log10(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source
int arf_log1p(arf_ptr res, arf_srcptr x, slong prec, arf_rnd_t rnd)source

Sets res to log⁡x\log x, log⁡2x\log_2 x, log⁡10x\log_{10} x resp. log⁡(1+x)\log(1 + x). The exact cases are log⁡1=0\log 1 = 0, log⁡2\log_2 of a power of two, log⁡10\log_{10} of a power of ten and log⁡(1+0)=0\log(1 + 0) = 0. A negative argument (below −1-1 for log1p) gives NaN, zero (resp. −1-1) gives −∞-\infty.

Cite this page

The FLINT team, “arf_log, arf_log2, arf_log10, arf_log1p (arf.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/arf/arf_log.html (generated 2026-11-17).