We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb8417b commit a508ff9Copy full SHA for a508ff9
src/sage/schemes/elliptic_curves/ell_curve_isogeny.py
@@ -2838,11 +2838,18 @@ def scaling_factor(self):
2838
sage: phi.dual().scaling_factor()
2839
43
2840
2841
+ TESTS:
2842
+
2843
+ Check for :issue:`36638`::
2844
2845
+ sage: phi.scaling_factor().parent() # needs sage.rings.finite_rings
2846
+ Finite Field in z2 of size 257^2
2847
2848
ALGORITHM: The "inner" isogeny is normalized by construction,
2849
so we only need to account for the scaling factors of a pre-
2850
and post-isomorphism.
2851
"""
- sc = Integer(1)
2852
+ sc = self.__base_field.one()
2853
if self.__pre_isomorphism is not None:
2854
sc *= self.__pre_isomorphism.scaling_factor()
2855
if self.__post_isomorphism is not None:
0 commit comments