FLINT3.7.0-dev

arb_atan_frac_bsplit

Synopsis#include <flint/arb.h>
void arb_atan_frac_bsplit(arb_t s, const fmpz_t p, const fmpz_t q, int hyperbolic, slong prec)source

Sets s to atan⁡(p/q)\operatorname{atan}(p/q), or atanh⁡(p/q)\operatorname{atanh}(p/q) if hyperbolic is set: by binary splitting of the Taylor series in mp_real (_mp_real_atan_frac_bsplit) when the precision is high relative to the ratio (above about 104(16/log⁡2(q/p))210^4 (16 / \log_2(q/p))^2 bits for the arctangent and four times that for the hyperbolic one, where it beats the kernels), else by the functions of the fraction.

Cite this page

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