FLINT3.7.0-dev

d1_log, d2_log, d3_log, d4_log, d1_atan, d2_atan, d3_atan, d4_atan

Synopsis#include <flint/dfloat.h>
void d1_log(d1_t res, d1_srcptr x)
void d2_log(d2_t res, d2_srcptr x)
void d3_log(d3_t res, d3_srcptr x)
void d4_log(d4_t res, d4_srcptr x)
void d1_atan(d1_t res, d1_srcptr x)
void d2_atan(d2_t res, d2_srcptr x)
void d3_atan(d3_t res, d3_srcptr x)
void d4_atan(d4_t res, d4_srcptr x)

The natural logarithm and the arctangent, with the bounds above. The logarithm of a nonpositive number is -\infty (for zero) or NaN, of +\infty it is +\infty, and \log 1 = 0 exactly; arguments outside [2^{-1022}, 2^{1022}) go through arb_t. The arctangent of \pm\infty is \pm \pi/2, and \operatorname{atan} 0 = 0 exactly.

Cite this page

The FLINT team, “d1_log, d2_log, d3_log, d4_log, d1_atan, d2_atan, d3_atan, d4_atan (dfloat.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dfloat/d1_log.html (generated 2026-10-20).