Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yyyyx4 committed Oct 29, 2021
1 parent e9ade97 commit 7dd0390
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/sage/schemes/elliptic_curves/hom_composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,13 @@ def __init__(self, E, kernel, codomain=None):
Composite morphism of degree 10 = 2*5:
From: Elliptic Curve defined by y^2 = x^3 + x over Finite Field of size 19
To: Elliptic Curve defined by y^2 = x^3 + 14*x over Finite Field of size 19
::
sage: EllipticCurveHom_composite(E, E.lift_x(3), codomain=E)
Composite morphism of degree 20 = 2^2*5:
From: Elliptic Curve defined by y^2 = x^3 + x over Finite Field of size 19
To: Elliptic Curve defined by y^2 = x^3 + x over Finite Field of size 19
"""
if not isinstance(E, EllipticCurve_generic):
raise ValueError(f'not an elliptic curve: {E}')
Expand All @@ -266,7 +273,7 @@ def __init__(self, E, kernel, codomain=None):
raise ValueError(f'not an elliptic curve: {codomain}')
iso = self._phis[-1].codomain().isomorphism_to(codomain)
if hasattr(self._phis[-1], '_set_post_isomorphism'):
self._phis[-1].set_post_isomorphism(iso)
self._phis[-1]._set_post_isomorphism(iso)
else:
self._phis.append(iso)

Expand Down

0 comments on commit 7dd0390

Please sign in to comment.