Exemplo n.º 1
0
def Jacobian(C):
    if not is_HyperellipticCurve(C):
        raise TypeError, "Argument C (= %s) must be a hyperelliptic curve."
    if C.genus() == 2:
        return jacobian_g2.HyperellipticJacobian_g2(C)
    else:
        return jacobian_generic.HyperellipticJacobian_generic(C)
Exemplo n.º 2
0
    def jacobian(self):
        """
        Return the Jacobian of the hyperelliptic curve.

        EXAMPLES::

            sage: R.<x> = QQ[]
            sage: f = x^5 - x^4 + 3
            sage: HyperellipticCurve(f).jacobian()
            Jacobian of Hyperelliptic Curve over Rational Field defined by y^2 = x^5 - x^4 + 3
        """
        return jacobian_g2.HyperellipticJacobian_g2(self)
Exemplo n.º 3
0
 def jacobian(self):
     return jacobian_g2.HyperellipticJacobian_g2(self)