Skip to content

Commit

Permalink
Deprecate is_Jacobian before removing
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Apr 14, 2024
1 parent 2f42cd9 commit 900fddc
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/sage/schemes/jacobians/abstract_jacobian.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,30 @@
_Fields = Fields()


def is_Jacobian(J):
"""
Return True if `J` is of type Jacobian_generic.
EXAMPLES::
sage: from sage.schemes.jacobians.abstract_jacobian import Jacobian, is_Jacobian
sage: P2.<x, y, z> = ProjectiveSpace(QQ, 2)
sage: C = Curve(x^3 + y^3 + z^3)
sage: J = Jacobian(C)
sage: is_Jacobian(J)
True
::
sage: E = EllipticCurve('37a1')
sage: is_Jacobian(E)
False
"""
from sage.misc.superseded import deprecation
deprecation(35467, "Use Jacobian_generic directly")
return isinstance(J, Jacobian_generic)


def Jacobian(C):
"""
EXAMPLES::
Expand Down

0 comments on commit 900fddc

Please sign in to comment.