Skip to content

Commit 3be51d9

Browse files
Merge pull request #161 from oscarbenjamin/pr_lerch_phi
Add acb.lerch_phi (Lerch transcendent)
2 parents 71e4800 + b174bb2 commit 3be51d9

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,16 @@ CHANGELOG
133133

134134
Next release:
135135

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

157159
0.6.0
158160

src/flint/types/acb.pyx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,21 @@ cdef class acb(flint_scalar):
733733
acb_hurwitz_zeta((<acb>u).val, (<acb>s).val, (<acb>a).val, getprec())
734734
return u
735735

736+
def lerch_phi(z, s, a):
737+
"""
738+
Lerch transcendent `\Phi(z,s,a)`.
739+
740+
>>> from flint import showgood
741+
>>> showgood(lambda: acb(1,2).lerch_phi(3, 4), dps=25)
742+
0.006872751459699249251487346 + 0.01112535314686351879432212j
743+
"""
744+
s = any_as_acb(s)
745+
a = any_as_acb(a)
746+
u = acb.__new__(acb)
747+
acb_dirichlet_lerch_phi((<acb>u).val, (<acb>z).val, (<acb>s).val, (<acb>a).val, getprec())
748+
return u
749+
750+
736751
def dirichlet_l(s, chi):
737752
cdef dirichlet_char cchar
738753
if isinstance(chi, dirichlet_char):

0 commit comments

Comments
 (0)