/* Copyright (C) 2012 Fredrik Johansson This file is part of Arb. Arb is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. See . */ #include "arb.h" #include "hypgeom.h" void arb_const_apery_eval(arb_t s, slong prec) { hypgeom_t series; arb_t t; arb_init(t); hypgeom_init(series); fmpz_poly_set_str(series->A, "3 77 250 205"); fmpz_poly_set_str(series->B, "1 1"); fmpz_poly_set_str(series->P, "6 0 0 0 0 0 -1"); fmpz_poly_set_str(series->Q, "6 32 320 1280 2560 2560 1024"); prec += 4 + FLINT_CLOG2(prec); arb_hypgeom_infsum(s, t, series, prec, prec); arb_mul_ui(t ,t, 64, prec); arb_div(s, s, t, prec); hypgeom_clear(series); arb_clear(t); } ARB_DEF_CACHED_CONSTANT(arb_const_apery, arb_const_apery_eval)