Пример #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)
Пример #2
0
 def jacobian(self):
     import jacobian_generic
     return jacobian_generic.HyperellipticJacobian_generic(self)