Skip to content

Commit 396204a

Browse files
committed
Minor bugfixes. Removed eistenstein_constant from guess in multiple.
1 parent 9437b16 commit 396204a

5 files changed

+7
-6
lines changed

arithgroup.py

+1
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ def get_word_rep(self,delta): # rationalmatrix
853853
ans = shorten_word(self.minus_one_long + ans)
854854
return self.check_word(delta.matrix(),ans)
855855
else:
856+
assert 0,'delta = %s, err = %s'%(delta, err)
856857
try:
857858
i = gens.index(err)
858859
except ValueError:

cohomology_arithmetic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def apply_hecke_operator(self,c,l, hecke_reps = None,group = None,scale = 1,use_
587587
"""
588588
# verbose('Entering apply_hecke_operator')
589589
if hecke_reps is None:
590-
hecke_reps = self.group().get_hecke_reps(l,use_magma = use_magma)
590+
hecke_reps = self.group().get_hecke_reps(l,use_magma = use_magma, g0 = g0)
591591
# verbose('Got hecke reps')
592592
V = self.coefficient_module()
593593
padic = not V.base_ring().is_exact()

config.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[General]
22
# Default (None) means that the code will create a name from the input data
3-
outfile : None
3+
outfile : 'log'
44

55
# Default (None) means to use the distributions in Pollack-Stevens's code only if needed.
66
use_ps_dists: None

darmonpoints.sage

+3-3
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ def darmon_point(P, E, beta, prec, ramification_at_infinity = None, input_data =
200200
magma.quit()
201201
return G
202202
eisenstein_constant = -ZZ(E.reduction(ell).count_points())
203-
fwrite('r = %s, so a_r(E) - r - 1 = %s'%(ell,eisenstein_constant),outfile)
204-
fwrite('exponent = %s'%nn,outfile)
203+
fwrite('r = %s, so a_r(E) - r - 1 = %s'%(ell,eisenstein_constant), outfile)
204+
fwrite('exponent = %s'%nn, outfile)
205205
phiE = Coh.get_cocycle_from_elliptic_curve(E, sign = sign_at_infinity)
206206
if hasattr(E,'ap'):
207207
sign_ap = E.ap(P)
@@ -285,7 +285,7 @@ def darmon_point(P, E, beta, prec, ramification_at_infinity = None, input_data =
285285
local_embedding = Qp(p,working_prec)
286286
twopowlist = [4, 3, 2, 1, 1/2, 3/2, 1/3, 2/3, 1/4, 3/4, 5/2, 4/3]
287287

288-
known_multiple = eisenstein_constant * nn
288+
known_multiple = nn # * eisenstein_constant # It seems that we are not getting it with present algorithm.
289289
while known_multiple % p == 0:
290290
known_multiple = ZZ(known_multiple / p)
291291

sarithgroup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ def subdivide(self,edgelist,parity,depth):
384384
def wp(self):
385385
verbose('Finding a suitable wp...')
386386
if self.F == QQ and self.discriminant == 1:
387+
epsinv = matrix(QQ,2,2,[0,-1,self.p,0])**-1
387388
if self.level == 1:
388389
try:
389390
ans = matrix(QQ,2,2,[0,-1,self.ideal_p.gens_reduced()[0],0])
@@ -395,7 +396,6 @@ def wp(self):
395396
p = self.ideal_p
396397
m = self.level
397398
g,w,z = XGCD(p,-m)
398-
epsinv = matrix(QQ,2,2,[0,-1,self.p,0])**-1
399399
ans = matrix(QQ,2,2,[p,1,p*m*z,p*w])
400400
i = 0
401401
all_initial = []

0 commit comments

Comments
 (0)