fix a few potential bugs

This commit is contained in:
fredrik 2022-01-20 20:28:46 +01:00
parent c2b7e36915
commit 5b5b2a6dc8
5 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,7 @@
(at your option) any later version. See <http://www.gnu.org/licenses/>.
*/
#include "flint/double_extras.h"
#include "arb_hypgeom.h"
#define LOG2 0.69314718055994531

View file

@ -9,6 +9,7 @@
(at your option) any later version. See <http://www.gnu.org/licenses/>.
*/
#include "flint/double_extras.h"
#include "arb_hypgeom.h"
#define LOG2 0.69314718055994530942

View file

@ -9,6 +9,7 @@
(at your option) any later version. See <http://www.gnu.org/licenses/>.
*/
#include "flint/double_extras.h"
#include "arb_hypgeom.h"
#include "hypgeom.h"

View file

@ -46,6 +46,9 @@ mag_geom_choose_N(const mag_t M, const mag_t C, const mag_t tol)
mag_t t, u;
slong N;
if (mag_is_finite(M) && mag_is_zero(C))
return 1;
/* N = log(M / ((1 - C) tol)) / log(1/C) */
mag_init(t);
mag_init(u);

View file

@ -9,6 +9,7 @@
(at your option) any later version. See <http://www.gnu.org/licenses/>.
*/
#include "flint/double_extras.h"
#include "arb_hypgeom.h"
#define LOG2 0.69314718055994531