Skip to content

Commit 1dda15c

Browse files
committed
src/sage/lfunctions/pari.py: apply pycodestyle to the examples string 2
1 parent a8aad93 commit 1dda15c

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/sage/lfunctions/pari.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def lfun_genus2(C):
409409
sage: L(3)
410410
0.965946926261520
411411
412-
sage: C = HyperellipticCurve(x^2+x, x^3+x^2+1)
412+
sage: C = HyperellipticCurve(x^2 + x, x^3 + x^2 + 1)
413413
sage: L = LFunction(lfun_genus2(C))
414414
sage: L(2)
415415
0.364286342944359
@@ -445,11 +445,11 @@ class LFunction(SageObject):
445445
0.000000000000000
446446
sage: L.derivative(1)
447447
0.305999773834052
448-
sage: L.derivative(1,2)
448+
sage: L.derivative(1, 2)
449449
0.373095594536324
450450
sage: L.num_coeffs()
451451
50
452-
sage: L.taylor_series(1,4)
452+
sage: L.taylor_series(1, 4)
453453
0.000000000000000 + 0.305999773834052*z + 0.186547797268162*z^2 - 0.136791463097188*z^3 + O(z^4)
454454
sage: L.check_functional_equation() # abs tol 4e-19
455455
1.08420217248550e-19
@@ -463,9 +463,9 @@ class LFunction(SageObject):
463463
sage: L = E.lseries().dokchitser(algorithm="pari")
464464
sage: L.num_coeffs()
465465
163
466-
sage: L.derivative(1,E.rank())
466+
sage: L.derivative(1, E.rank())
467467
1.51863300057685
468-
sage: L.taylor_series(1,4)
468+
sage: L.taylor_series(1, 4)
469469
...e-19 + (...e-19)*z + 0.759316500288427*z^2 - 0.430302337583362*z^3 + O(z^4)
470470
471471
.. RUBRIC:: Number field
@@ -481,15 +481,15 @@ class LFunction(SageObject):
481481
348
482482
sage: L(2)
483483
1.10398438736918
484-
sage: L.taylor_series(2,3)
484+
sage: L.taylor_series(2, 3)
485485
1.10398438736918 - 0.215822638498759*z + 0.279836437522536*z^2 + O(z^3)
486486
487487
.. RUBRIC:: Ramanujan `\Delta` L-function
488488
489489
The coefficients are given by Ramanujan's tau function::
490490
491491
sage: from sage.lfunctions.pari import lfun_generic, LFunction
492-
sage: lf = lfun_generic(conductor=1, gammaV=[0,1], weight=12, eps=1)
492+
sage: lf = lfun_generic(conductor=1, gammaV=[0, 1], weight=12, eps=1)
493493
sage: tau = pari('k->vector(k,n,(5*sigma(n,3)+7*sigma(n,5))*n/12 - 35*sum(k=1,n-1,(6*k-4*(n-k))*sigma(k,3)*sigma(n-k,5)))')
494494
sage: lf.init_coeffs(tau)
495495
sage: L = LFunction(lf)
@@ -498,7 +498,7 @@ class LFunction(SageObject):
498498
499499
sage: L(1)
500500
0.0374412812685155
501-
sage: L.taylor_series(1,3)
501+
sage: L.taylor_series(1, 3)
502502
0.0374412812685155 + 0.0709221123619322*z + 0.0380744761270520*z^2 + O(z^3)
503503
"""
504504
def __init__(self, lfun, prec=None):
@@ -608,7 +608,7 @@ def Lambda(self, s):
608608
sage: L = LFunction(lfun_number_field(QQ))
609609
sage: L.Lambda(2)
610610
0.523598775598299
611-
sage: L.Lambda(1-2)
611+
sage: L.Lambda(1 - 2)
612612
0.523598775598299
613613
"""
614614
s = self._CCin(s)
@@ -630,7 +630,7 @@ def hardy(self, t):
630630
631631
TESTS::
632632
633-
sage: L.hardy(.4+.3*I)
633+
sage: L.hardy(.4 + .3*I)
634634
Traceback (most recent call last):
635635
...
636636
PariError: incorrect type in lfunhardy (t_COMPLEX)
@@ -694,7 +694,7 @@ def taylor_series(self, s, k=6, var='z'):
694694
695695
sage: E = EllipticCurve('389a')
696696
sage: L = E.lseries().dokchitser(200,algorithm="pari")
697-
sage: L.taylor_series(1,3)
697+
sage: L.taylor_series(1, 3)
698698
2...e-63 + (...e-63)*z + 0.75931650028842677023019260789472201907809751649492435158581*z^2 + O(z^3)
699699
700700
Check that :trac:`25402` is fixed::
@@ -757,7 +757,7 @@ def __call__(self, s):
757757
sage: L = E.lseries().dokchitser(100, algorithm="pari")
758758
sage: L(1)
759759
0.00000000000000000000000000000
760-
sage: L(1+I)
760+
sage: L(1 + I)
761761
-1.3085436607849493358323930438 + 0.81298000036784359634835412129*I
762762
"""
763763
s = self._CC(s)

0 commit comments

Comments
 (0)