#include "arb.h"
#include "arb_hypgeom.h"
void
arb_hypgeom_sum_fmpq_arb(arb_t res, const fmpq * a, slong alen, const fmpq * b, slong blen, const arb_t z, int reciprocal, slong N, slong prec)
{
if (N <= 2 || (prec <= 1024 && N <= 8) || (prec <= 4096 && N <= 4))
arb_hypgeom_sum_fmpq_arb_forward(res, a, alen, b, blen, z, reciprocal, N, prec);
else if (prec >= 8192 && arb_bits(z) <= 0.001 * prec)
arb_hypgeom_sum_fmpq_arb_bs(res, a, alen, b, blen, z, reciprocal, N, prec);
else
arb_hypgeom_sum_fmpq_arb_rs(res, a, alen, b, blen, z, reciprocal, N, prec);
}