1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
/*
Copyright (C) 2020 D.H.J. Polymath
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/>.
*/
#include "acb_dirichlet.h"
int main()
{
fmpz_t n;
acb_ptr pa, pb;
slong count, i;
slong maxcount = 50;
slong prec = 64;
flint_printf("platt_zeta_zeros....");
fflush(stdout);
fmpz_init(n);
pa = _acb_vec_init(maxcount);
pb = _acb_vec_init(maxcount);
fmpz_set_si(n, 10000);
count = acb_dirichlet_platt_zeta_zeros(pa, n, maxcount, prec);
acb_dirichlet_zeta_zeros(pb, n, count, prec);
if (count != maxcount)
{
flint_printf("FAIL: not enough zeros were isolated\n\n");
flint_printf("count = %wd maxcount = %wd\n\n", count, maxcount);
flint_abort();
}
for (i = 0; i < count; i++)
{
if (!acb_overlaps(pa+i, pb+i))
{
flint_printf("FAIL: overlap\n\n");
flint_printf("observed[%wd] = ", i);
acb_printd(pa+i, 20); flint_printf("\n\n");
flint_printf("expected[%wd] = ", i);
acb_printd(pb+i, 20); flint_printf("\n\n");
flint_abort();
}
}
fmpz_clear(n);
_acb_vec_clear(pa, maxcount);
_acb_vec_clear(pb, maxcount);
flint_cleanup();
flint_printf("PASS\n");
return EXIT_SUCCESS;
}
|