@@ -25,8 +25,6 @@ class ``ModularSymbolsAmbient``, derived from
25
25
- ``ModularSymbolsAmbient_wtk_eps``, for modular symbols of general
26
26
weight `k` and character `\epsilon`.
27
27
28
-
29
-
30
28
EXAMPLES:
31
29
32
30
We compute a space of modular symbols modulo 2. The dimension is
@@ -443,14 +441,12 @@ def _element_constructor_(self, x, computed_with_hecke=False):
443
441
(1,35)
444
442
sage: M([Cusp(1/2),Cusp(0)])
445
443
(1,35)
446
-
447
-
448
444
"""
449
445
if isinstance (x , FreeModuleElement ):
450
446
if x .degree () != self .dimension ():
451
- raise TypeError ("Incompatible degrees: x has degree %s \
452
- but modular symbols space has dimension %s" % (
453
- x . degree (), self .dimension ()) )
447
+ raise TypeError ("Incompatible degrees: x has degree "
448
+ f" { x . degree () } but modular symbols space has "
449
+ f"dimension { self .dimension ()} " )
454
450
return self .element_class (self , x )
455
451
456
452
elif isinstance (x , (ManinSymbol , element .ModularSymbolsElement )):
@@ -534,7 +530,6 @@ def _action_on_modular_symbols(self, g):
534
530
[0 0 0 1]
535
531
[0 1 0 0]
536
532
[0 1 0 0]
537
-
538
533
"""
539
534
if not isinstance (g , list ):
540
535
raise TypeError ("g must be a list" )
@@ -573,7 +568,7 @@ def manin_symbol(self, x, check=True):
573
568
if x [0 ] < 0 or x [0 ] > self .weight () - 2 :
574
569
raise ValueError ("The first entry of the tuple (=%s)\
575
570
must be an integer between 0 and k-2 (=%s)." % (
576
- x , self .weight ()- 2 ))
571
+ x , self .weight () - 2 ))
577
572
else :
578
573
raise ValueError ("x (=%s) must be of length 2 or 3" % x )
579
574
# end check
@@ -599,7 +594,7 @@ def _modular_symbol_0_to_alpha(self, alpha, i=0):
599
594
600
595
- ``alpha`` (rational or Infinity) -- a cusp
601
596
602
- - ``i`` (int, default 0) -- the degree of the symbol.
597
+ - ``i`` (int, default 0) -- the degree of the symbol
603
598
604
599
OUTPUT:
605
600
@@ -659,7 +654,7 @@ def _modular_symbol_0_to_alpha(self, alpha, i=0):
659
654
# method 1: write out solution. this is currently
660
655
# incorrect, because it ends up doing 0^0 in the sum,
661
656
# so I'll fix it and do timings soon.
662
- # for s in range(0, self.weight()-two+1):
657
+ # for s in range(self.weight()-two+1):
663
658
# coeff = sum([ binomial(i,t)*binomial(self.weight()-two-i,s-t)*
664
659
# x**t * y**(i-t) * z**(s-t) *
665
660
# w**(self.weight()-two-i-s+t) for t in range(0,s) ])
@@ -3744,8 +3739,8 @@ def _degeneracy_raising_matrix_1(self, M):
3744
3739
i = s .i
3745
3740
# We apply each matrix in H according to the above formula
3746
3741
for h in H :
3747
- hg = h * g
3748
- z += eps (h [0 , 0 ])* M ((i , hg [1 , 0 ], hg [1 , 1 ]))
3742
+ hg = h * g
3743
+ z += eps (h [0 , 0 ]) * M ((i , hg [1 , 0 ], hg [1 , 1 ]))
3749
3744
rows .append (z .element ())
3750
3745
A = MS (rows )
3751
3746
return A
0 commit comments