arb: update to 2.21.1.
This commit is contained in:
parent
14031ad1bb
commit
6b1df59757
|
@ -1,73 +0,0 @@
|
|||
From 450435a84a40acc1871cd84f1caf2ea47c11a18c Mon Sep 17 00:00:00 2001
|
||||
From: fredrik <fredrik.johansson@gmail.com>
|
||||
Date: Tue, 28 Sep 2021 12:07:45 +0200
|
||||
Subject: [PATCH] fix (hopefully) spurious test failures for gamma_fmpq
|
||||
|
||||
---
|
||||
arb_hypgeom/gamma_fmpq.c | 16 ++++++++--------
|
||||
1 file changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/arb_hypgeom/gamma_fmpq.c b/arb_hypgeom/gamma_fmpq.c
|
||||
index 996a87e5..ee750d0d 100644
|
||||
--- a/arb_hypgeom/gamma_fmpq.c
|
||||
+++ b/arb_hypgeom/gamma_fmpq.c
|
||||
@@ -529,22 +529,22 @@ arb_hypgeom_gamma_fmpq_outward(arb_t y, const fmpq_t x, slong prec)
|
||||
|
||||
if (q == 1 || q == 2 || q == 3 || q == 4 || q == 6)
|
||||
{
|
||||
- arb_hypgeom_gamma_small_frac(t, p, q, prec);
|
||||
+ arb_hypgeom_gamma_small_frac(t, p, q, prec + 4 * (m != 0));
|
||||
}
|
||||
else
|
||||
{
|
||||
- arb_hypgeom_gamma_fmpq_hyp(t, a, prec);
|
||||
+ arb_hypgeom_gamma_fmpq_hyp(t, a, prec + 4 * (m != 0));
|
||||
}
|
||||
|
||||
/* argument reduction */
|
||||
if (m >= 0)
|
||||
{
|
||||
- arb_rising_fmpq_ui(u, a, m, prec);
|
||||
+ arb_rising_fmpq_ui(u, a, m, prec + 4);
|
||||
arb_mul(y, t, u, prec);
|
||||
}
|
||||
else
|
||||
{
|
||||
- arb_rising_fmpq_ui(u, x, -m, prec);
|
||||
+ arb_rising_fmpq_ui(u, x, -m, prec + 4);
|
||||
arb_div(y, t, u, prec);
|
||||
}
|
||||
|
||||
@@ -602,7 +602,7 @@ arb_hypgeom_gamma_fmpq_taylor(arb_t y, const fmpq_t x, slong prec)
|
||||
}
|
||||
|
||||
arb_set_fmpq(t, a, prec + 4);
|
||||
- success = arb_hypgeom_gamma_taylor(t, t, 0, prec);
|
||||
+ success = arb_hypgeom_gamma_taylor(t, t, 0, prec + 4);
|
||||
|
||||
if (success)
|
||||
{
|
||||
@@ -611,12 +611,12 @@ arb_hypgeom_gamma_fmpq_taylor(arb_t y, const fmpq_t x, slong prec)
|
||||
|
||||
if (m >= 0)
|
||||
{
|
||||
- arb_rising_fmpq_ui(u, a, m, prec);
|
||||
+ arb_rising_fmpq_ui(u, a, m, prec + 4);
|
||||
arb_mul(y, t, u, prec);
|
||||
}
|
||||
else
|
||||
{
|
||||
- arb_rising_fmpq_ui(u, x, -m, prec);
|
||||
+ arb_rising_fmpq_ui(u, x, -m, prec + 4);
|
||||
arb_div(y, t, u, prec);
|
||||
}
|
||||
|
||||
@@ -684,7 +684,7 @@ arb_hypgeom_gamma_fmpq(arb_t y, const fmpq_t x, slong prec)
|
||||
wp = (slong) fmpz_bits(fmpq_numref(x)) - (slong) fmpz_bits(fmpq_denref(x));
|
||||
wp = FLINT_MAX(wp, 0);
|
||||
wp = FLINT_MIN(wp, 4 * prec);
|
||||
- wp += prec;
|
||||
+ wp += prec + 4;
|
||||
|
||||
arb_set_fmpq(y, x, wp);
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'arb'
|
||||
pkgname=arb
|
||||
version=2.21.0
|
||||
version=2.21.1
|
||||
revision=1
|
||||
build_style=configure
|
||||
configure_args="--prefix=/usr --with-gmp=/usr --with-mpfr=/usr --with-flint=/usr"
|
||||
|
@ -9,8 +9,9 @@ short_desc="C library for arbitrary-precision interval arithmetic"
|
|||
maintainer="Gonzalo Tornaría <tornaria@cmat.edu.uy>"
|
||||
license="LGPL-2.1-or-later"
|
||||
homepage="https://arblib.org"
|
||||
changelog="https://raw.githubusercontent.com/fredrik-johansson/arb/master/doc/source/history.rst"
|
||||
distfiles="https://github.com/fredrik-johansson/arb/archive/${version}.tar.gz"
|
||||
checksum=6493ebcfb1772458db4ca66da4c5536968484a3815cf75d2bb33c600b4471910
|
||||
checksum=aecc9f55eb35a00a2490e9a7536a0babf8ac86bb13d32a4a95e1216f9f5cbfa8
|
||||
|
||||
CFLAGS="-D_GNU_SOURCE" # needed for cpu_set_t
|
||||
|
||||
|
|
Loading…
Reference in New Issue