allow G == NULL also in hardy_z to select zeta

This commit is contained in:
Fredrik Johansson 2016-12-01 09:45:04 +01:00
parent b375366fa5
commit 7c69f5d009
3 changed files with 5 additions and 2 deletions

View file

@ -51,7 +51,7 @@ acb_dirichlet_l(acb_t res, const acb_t s,
{ {
acb_indeterminate(res); acb_indeterminate(res);
} }
else if (G->q == 1) else if (G == NULL || G->q == 1)
{ {
acb_dirichlet_zeta(res, s, prec); acb_dirichlet_zeta(res, s, prec);
} }

View file

@ -28,7 +28,7 @@ acb_dirichlet_l_jet(acb_ptr res, const acb_t s,
return; return;
/* todo: reflection formula */ /* todo: reflection formula */
if (G->q == 1) if (G == NULL || G->q == 1)
{ {
acb_init(a); acb_init(a);
acb_one(a); acb_one(a);

View file

@ -429,6 +429,9 @@ L-functions
Hardy Z-functions Hardy Z-functions
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
For convenience, setting both *G* and *chi* to *NULL* in the following
methods selects the Riemann zeta function.
.. function:: void acb_dirichlet_hardy_theta(acb_ptr res, const acb_t t, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, slong prec) .. function:: void acb_dirichlet_hardy_theta(acb_ptr res, const acb_t t, const dirichlet_group_t G, const dirichlet_char_t chi, slong len, slong prec)
Computes the phase function used to construct the Z-function. Computes the phase function used to construct the Z-function.