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)
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)
def jacobian(self): return jacobian_g2.HyperellipticJacobian_g2(self)