FLINT3.7.0-dev

acb_log, acb_log_analytic

Synopsis#include <flint/acb.h>
void acb_log(acb_t r, const acb_t z, slong prec)source
void acb_log_analytic(acb_t res, const acb_t z, int analytic, slong prec)source

Set the output to the principal logarithm \log z = \log|z| + i \arg z, computed with arb_log_hypot and arb_atan2, with the branch cut on (-\infty, 0] and imaginary part in (-\pi, \pi]. A rectangle crossing the branch cut gives an imaginary part enclosing [-\pi, \pi]; with analytic set the result is then indeterminate instead.

Guides#

Cite this page

The FLINT team, “acb_log, acb_log_analytic (acb.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb/acb_log.html (generated 2026-10-20).