File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -256,6 +256,28 @@ def lfun_character(chi):
256
256
return pari .lfuncreate ([G , v ])
257
257
258
258
259
+ def lfun_hgm (motif , t ):
260
+ """
261
+ Create the L-function of an hypergeometric motive.
262
+
263
+ OUTPUT:
264
+
265
+ one :pari:`lfun` object
266
+
267
+ EXAMPLES::
268
+
269
+ sage: from sage.lfunctions.pari import lfun_hgm, LFunction
270
+ sage: from sage.modular.hypergeometric_motive import HypergeometricData as Hyp
271
+ sage: H = Hyp(gamma_list=([3,-1,-1,-1]))
272
+ sage: L = LFunction(lfun_hgm(H, 1/5))
273
+ sage: L(3)
274
+ 0.901925346034773
275
+ """
276
+ H = pari .hgminit (* motif .alpha_beta ())
277
+ lf = pari .lfunhgm (H , t )
278
+ return pari .lfuncreate (lf )
279
+
280
+
259
281
def lfun_elliptic_curve (E ):
260
282
"""
261
283
Create the L-function of an elliptic curve.
Original file line number Diff line number Diff line change @@ -982,6 +982,30 @@ def has_symmetry_at_one(self):
982
982
beta_twist = self .twist ()._beta
983
983
return self .degree () % 2 == 0 and self ._alpha == beta_twist
984
984
985
+ def lfunction (self , t , prec = 53 ):
986
+ """
987
+ Return the L-function of ``self``.
988
+
989
+ The result is a wrapper around a PARI L-function.
990
+
991
+ INPUT:
992
+
993
+ - ``prec`` -- precision (default 53)
994
+
995
+ EXAMPLES::
996
+
997
+ sage: from sage.modular.hypergeometric_motive import HypergeometricData as Hyp
998
+ sage: H = Hyp(cyclotomic=([3],[4]))
999
+ sage: L = H.lfunction(1/64); L
1000
+ PARI L-function associated to Hypergeometric data for [1/3, 2/3] and [1/4, 3/4]
1001
+ sage: L(4)
1002
+ 0.997734256321692
1003
+ """
1004
+ from sage .lfunctions .pari import lfun_hgm , LFunction
1005
+ Z = LFunction (lfun_hgm (self , t ), prec = prec )
1006
+ Z .rename ('PARI L-function associated to %s' % self )
1007
+ return Z
1008
+
985
1009
def canonical_scheme (self , t = None ):
986
1010
"""
987
1011
Return the canonical scheme.
You can’t perform that action at this time.
0 commit comments