Skip to content

Commit 7dd0390

Browse files
committed
fix typo
1 parent e9ade97 commit 7dd0390

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/sage/schemes/elliptic_curves/hom_composite.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,13 @@ def __init__(self, E, kernel, codomain=None):
245245
Composite morphism of degree 10 = 2*5:
246246
From: Elliptic Curve defined by y^2 = x^3 + x over Finite Field of size 19
247247
To: Elliptic Curve defined by y^2 = x^3 + 14*x over Finite Field of size 19
248+
249+
::
250+
251+
sage: EllipticCurveHom_composite(E, E.lift_x(3), codomain=E)
252+
Composite morphism of degree 20 = 2^2*5:
253+
From: Elliptic Curve defined by y^2 = x^3 + x over Finite Field of size 19
254+
To: Elliptic Curve defined by y^2 = x^3 + x over Finite Field of size 19
248255
"""
249256
if not isinstance(E, EllipticCurve_generic):
250257
raise ValueError(f'not an elliptic curve: {E}')
@@ -266,7 +273,7 @@ def __init__(self, E, kernel, codomain=None):
266273
raise ValueError(f'not an elliptic curve: {codomain}')
267274
iso = self._phis[-1].codomain().isomorphism_to(codomain)
268275
if hasattr(self._phis[-1], '_set_post_isomorphism'):
269-
self._phis[-1].set_post_isomorphism(iso)
276+
self._phis[-1]._set_post_isomorphism(iso)
270277
else:
271278
self._phis.append(iso)
272279

0 commit comments

Comments
 (0)