Skip to content

Commit 2a895a3

Browse files
committed
fix precision issue for 𝑗=0 and β„“=3
1 parent e2e0f8d commit 2a895a3

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

β€Žsrc/sage/schemes/elliptic_curves/ell_curve_isogeny.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3464,6 +3464,15 @@ def compute_isogeny_stark(E1, E2, ell):
34643464
sage: E2 = phi.codomain()
34653465
sage: compute_isogeny_stark(E, E2, 2)
34663466
x
3467+
3468+
TESTS:
3469+
3470+
Check for :issue:`21883`::
3471+
3472+
sage: E1 = EllipticCurve([0,1])
3473+
sage: E2 = EllipticCurve([0,-27])
3474+
sage: E1.isogeny(None, E2, degree=3)
3475+
Isogeny of degree 3 from Elliptic Curve defined by y^2 = x^3 + 1 over Rational Field to Elliptic Curve defined by y^2 = x^3 - 27 over Rational Field
34673476
"""
34683477
K = E1.base_field()
34693478
R, x = PolynomialRing(K, 'x').objgen()
@@ -3477,8 +3486,8 @@ def compute_isogeny_stark(E1, E2, ell):
34773486
for i in range(2*ell + 1):
34783487
pe1 += wp1[2*i] * Z**i
34793488
pe2 += wp2[2*i] * Z**i
3480-
pe1 = pe1.add_bigoh(2*ell+2)
3481-
pe2 = pe2.add_bigoh(2*ell+2)
3489+
pe1 = pe1.add_bigoh(2*ell+3)
3490+
pe2 = pe2.add_bigoh(2*ell+3)
34823491

34833492
n = 1
34843493
q = [R.one(), R.zero()]

0 commit comments

Comments
Β (0)