arb/hypgeom.h

63 lines
1.3 KiB
C
Raw Normal View History

/*
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 <http://www.gnu.org/licenses/>.
*/
#ifndef HYPGEOM_H
#define HYPGEOM_H
2016-03-03 15:42:23 +01:00
#include "flint/fmpz_poly.h"
#include "arb.h"
#include "mag.h"
2013-09-17 18:55:23 +01:00
#ifdef __cplusplus
extern "C" {
#endif
typedef struct
{
fmpz_poly_t A;
fmpz_poly_t B;
fmpz_poly_t P;
fmpz_poly_t Q;
/* precomputation data */
int have_precomputed;
2015-11-06 11:16:30 +00:00
slong r;
slong boundC;
slong boundD;
slong boundK;
mag_t MK;
}
hypgeom_struct;
typedef hypgeom_struct hypgeom_t[1];
void hypgeom_init(hypgeom_t hyp);
void hypgeom_clear(hypgeom_t hyp);
void hypgeom_precompute(hypgeom_t hyp);
2015-11-10 13:41:43 +00:00
slong hypgeom_estimate_terms(const mag_t z, int r, slong prec);
2015-11-10 13:41:43 +00:00
slong hypgeom_bound(mag_t error, int r,
2015-11-06 11:16:30 +00:00
slong C, slong D, slong K, const mag_t TK, const mag_t z, slong prec);
2015-11-06 11:16:30 +00:00
void arb_hypgeom_sum(arb_t P, arb_t Q, const hypgeom_t hyp, slong n, slong prec);
2015-11-06 11:16:30 +00:00
void arb_hypgeom_infsum(arb_t P, arb_t Q, hypgeom_t hyp, slong target_prec, slong prec);
2013-09-17 18:55:23 +01:00
#ifdef __cplusplus
}
#endif
#endif