Skip to content

Add acb.lerch_phi (Lerch transcendent) #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,16 @@ CHANGELOG

Next release:

- [gh-161](https://github.com/flintlib/python-flint/pull/161)
Add `acb.lerch_phi` to compute the Lerch transcendent.
- [gh-132](https://github.com/flintlib/python-flint/pull/132)
Add `fmpz_mpoly` and `fmpq_mpoly` types for multivariate polynomials with
integer or rational coefficients.
- [gh-160](https://github.com/flintlib/python-flint/pull/160)
Add `bits` to `arb` and `acb`, add `log_base` to `arb`.
- [gh-149](https://github.com/flintlib/python-flint/pull/149)
Bump Flint version to 3.1.3-p1 (Flint 3.0.0 - 3.1.3-p1 is supported but the
wheels are built with 3.1.3-p1).
- [gh-148](https://github.com/flintlib/python-flint/pull/148)
Remove debug symbols to make smaller Linux binaries.
- [gh-144](https://github.com/flintlib/python-flint/pull/144)
Expand All @@ -150,9 +155,6 @@ Next release:
Add `erfinv` and `erfcinv` for `arb`.
- [gh-129](https://github.com/flintlib/python-flint/pull/129)
Use meson-python instead of setuptools as the build backend.
- [gh-125](https://github.com/flintlib/python-flint/pull/125)
Bump Flint version to 3.1.2 (Flint 3.0.0 - 3.1.2 is supported but the wheels
are built with 3.1.2).

0.6.0

Expand Down
15 changes: 15 additions & 0 deletions src/flint/types/acb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,21 @@ cdef class acb(flint_scalar):
acb_hurwitz_zeta((<acb>u).val, (<acb>s).val, (<acb>a).val, getprec())
return u

def lerch_phi(z, s, a):
"""
Lerch transcendent `\Phi(z,s,a)`.

>>> from flint import showgood
>>> showgood(lambda: acb(1,2).lerch_phi(3, 4), dps=25)
0.006872751459699249251487346 + 0.01112535314686351879432212j
"""
s = any_as_acb(s)
a = any_as_acb(a)
u = acb.__new__(acb)
acb_dirichlet_lerch_phi((<acb>u).val, (<acb>z).val, (<acb>s).val, (<acb>a).val, getprec())
return u


def dirichlet_l(s, chi):
cdef dirichlet_char cchar
if isinstance(chi, dirichlet_char):
Expand Down
Loading