You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trac #34727: .multiplication_by_m_isogeny() fails for negative m
{{{#!sage
sage: EllipticCurve([5,5]).multiplication_by_m_isogeny(-1)
# ...
AssertionError: bug in multiplication_by_m_isogeny()
}}}
{{{#!sage
sage: EllipticCurve([5,5]).multiplication_by_m_isogeny(-2)
# ...
NotImplementedError: Kohel's algorithm currently only supports cyclic
isogenies (except for [2])
}}}
{{{#!sage
sage: EllipticCurve([5,5]).multiplication_by_m_isogeny(-3)
# ...
ValueError: n must be a positive integer (or -1 or -2)
}}}
All of these are because `.multiplication_by_m_isogeny()` calls
`.torsion_polynomial()` with `m`, which may be negative, rather than
`abs(m)`. As the last error message indicates, the values `-1` and `-2`
additionally have special meaning for `.torsion_polynomial()`, which
made debugging a bit more confusing...
URL: https://trac.sagemath.org/34727
Reported by: lorenz
Ticket author(s): Lorenz Panny
Reviewer(s): Frédéric Chapoton
Isogeny of degree 1 from Elliptic Curve defined by y^2 = x^3 + 5*x + 5 over Rational Field to Elliptic Curve defined by y^2 = x^3 + 5*x + 5 over Rational Field
2361
+
sage: E.multiplication_by_m_isogeny(-2)
2362
+
Isogeny of degree 4 from Elliptic Curve defined by y^2 = x^3 + 5*x + 5 over Rational Field to Elliptic Curve defined by y^2 = x^3 + 5*x + 5 over Rational Field
2363
+
sage: E.multiplication_by_m_isogeny(-3)
2364
+
Isogeny of degree 9 from Elliptic Curve defined by y^2 = x^3 + 5*x + 5 over Rational Field to Elliptic Curve defined by y^2 = x^3 + 5*x + 5 over Rational Field
0 commit comments