2016-04-26 17:20:05 +02:00
|
|
|
/*
|
2014-06-19 16:17:32 +02:00
|
|
|
Copyright (C) 2013 Fredrik Johansson
|
|
|
|
|
2016-04-26 17:20:05 +02:00
|
|
|
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/>.
|
|
|
|
*/
|
2014-06-19 16:17:32 +02:00
|
|
|
|
|
|
|
#ifndef ACB_CALC_H
|
|
|
|
#define ACB_CALC_H
|
|
|
|
|
|
|
|
#include "acb.h"
|
|
|
|
#include "acb_poly.h"
|
|
|
|
#include "acb_mat.h"
|
|
|
|
#include "arb_calc.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-11-10 14:08:51 +01:00
|
|
|
#define ACB_CALC_VERBOSE 1
|
|
|
|
#define ACB_CALC_VERY_VERBOSE 3
|
|
|
|
|
2017-11-12 18:59:31 +01:00
|
|
|
#define ACB_CALC_INTEGRATE_HEAP 8
|
|
|
|
|
2014-06-19 16:17:32 +02:00
|
|
|
typedef int (*acb_calc_func_t)(acb_ptr out,
|
2015-11-06 11:12:00 +00:00
|
|
|
const acb_t inp, void * param, slong order, slong prec);
|
2014-06-19 16:17:32 +02:00
|
|
|
|
|
|
|
/* Bounds */
|
|
|
|
|
|
|
|
void acb_calc_cauchy_bound(arb_t bound, acb_calc_func_t func,
|
|
|
|
void * param, const acb_t x, const arb_t radius,
|
2015-11-06 11:12:00 +00:00
|
|
|
slong maxdepth, slong prec);
|
2014-06-19 16:17:32 +02:00
|
|
|
|
|
|
|
/* Integration */
|
|
|
|
|
|
|
|
int acb_calc_integrate_taylor(acb_t res,
|
|
|
|
acb_calc_func_t func, void * param,
|
|
|
|
const acb_t a, const acb_t b,
|
|
|
|
const arf_t inner_radius,
|
|
|
|
const arf_t outer_radius,
|
2015-11-06 11:12:00 +00:00
|
|
|
slong accuracy_goal, slong prec);
|
2014-06-19 16:17:32 +02:00
|
|
|
|
2017-11-10 14:08:51 +01:00
|
|
|
void
|
|
|
|
acb_calc_integrate(acb_t res, acb_calc_func_t f, void * param,
|
|
|
|
const acb_t a, const acb_t b,
|
|
|
|
slong goal, const mag_t tol,
|
|
|
|
slong deg_limit, slong eval_limit, slong depth_limit,
|
|
|
|
int flags,
|
|
|
|
slong prec);
|
|
|
|
|
|
|
|
slong
|
|
|
|
acb_calc_integrate_gl_auto_deg(acb_t res, acb_calc_func_t f, void * param,
|
|
|
|
const acb_t a, const acb_t b, const mag_t tol,
|
|
|
|
slong deg_limit, int flags, slong prec);
|
|
|
|
|
2014-06-19 16:17:32 +02:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|