mirror of
https://github.com/vale981/arb
synced 2025-03-05 09:21:38 -05:00
fix a few potential bugs
This commit is contained in:
parent
c2b7e36915
commit
5b5b2a6dc8
5 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue