add acb_dirichlet_l as an alias for acb_dirichlet_l_hurwitz

This commit is contained in:
Fredrik Johansson 2016-10-08 23:54:14 +02:00
parent 10a9ac16ce
commit 75c1721746
4 changed files with 29 additions and 2 deletions

View file

@ -88,6 +88,7 @@ void acb_dirichlet_jacobi_sum(acb_t res, const dirichlet_group_t G, const dirich
void acb_dirichlet_jacobi_sum_ui(acb_t res, const dirichlet_group_t G, ulong a, ulong b, slong prec);
void acb_dirichlet_l_hurwitz(acb_t res, const acb_t s, const dirichlet_group_t G, const dirichlet_char_t chi, slong prec);
void acb_dirichlet_l(acb_t res, const acb_t s, const dirichlet_group_t G, const dirichlet_char_t chi, slong prec);
/* utils */

21
acb_dirichlet/l.c Normal file
View file

@ -0,0 +1,21 @@
/*
Copyright (C) 2016 Fredrik Johansson
Copyright (C) 2016 Pascal Molin
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"
void
acb_dirichlet_l(acb_t res, const acb_t s,
const dirichlet_group_t G, const dirichlet_char_t chi, slong prec)
{
acb_dirichlet_l_hurwitz(res, s, G, chi, prec);
}

View file

@ -13,7 +13,6 @@
#include "acb_dirichlet.h"
#include "acb_poly.h"
/* todo: should document or fix that it doesn't allow aliasing */
void
acb_dirichlet_l_hurwitz(acb_t res, const acb_t s,
const dirichlet_group_t G, const dirichlet_char_t chi, slong prec)

View file

@ -195,7 +195,7 @@ L-functions
.. function:: void acb_dirichlet_l_hurwitz(acb_t res, const acb_t s, const dirichlet_group_t G, const dirichlet_char_t chi, slong prec)
Compute `L(s,\chi)` using decomposition in terms of the Hurwitz zeta function
Computes `L(s,\chi)` using decomposition in terms of the Hurwitz zeta function
.. math::
@ -205,3 +205,9 @@ L-functions
is used to avoid poles.
This formula is slow for large *q*.
.. function:: void acb_dirichlet_l(acb_t res, const acb_t s, const dirichlet_group_t G, const dirichlet_char_t chi, slong prec)
Computes `L(s,\chi)` using a default choice of algorithm.
Currently, only the Hurwitz zeta formula is used.