FLINT3.7.0-dev

acb_real_sqrtpos

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

The square root on [0, +\infty), extended to the principal complex square root. For a real z without analytic, only the nonnegative part is used, as by arb_sqrtpos. This is the function to integrate \sqrt{f(x)} when f(x) \ge 0 is known: unlike acb_sqrt_analytic, it creates no spurious imaginary parts [\pm \varepsilon] i when an enclosure of f(x) straddles 0.

Cite this page

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