FLINT3.7.0-dev

_mp_real_gamma_upper_half_frac_asymp, _mp_real_gamma_upper_half_frac_cf, _mp_real_gamma_upper_half_frac_lower

Synopsis#include <flint/mp_real.h>
int _mp_real_gamma_upper_half_frac_asymp(mp_real_t res, nn_srcptr p, slong pn, nn_srcptr q, slong qn, slong N, slong n)source
int _mp_real_gamma_upper_half_frac_cf(mp_real_t res, nn_srcptr p, slong pn, nn_srcptr q, slong qn, slong N, slong n)source
void _mp_real_gamma_upper_half_frac_lower(mp_real_t res, nn_srcptr p, slong pn, nn_srcptr q, slong qn, slong n)source

Γ(12,y)\Gamma(\tfrac12, y) by one method: the asymptotic series with NN terms (N=0N = 0 chooses the number of terms), Legendre's continued fraction with NN steps, resp. the lower series. The first two return 0, leaving res undefined, if the result would not be accurate to about nn limbs (the series diverges before reaching the accuracy, or the fraction is too short); otherwise they return 1. The domain is that of mp_real_gamma_upper_half_frac. For testing and tuning.

Cite this page

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