Example #1
0
 def __init__(self, A, X):
     if not is_ProjectiveSpace(A):
         raise TypeError("A (=%s) must be a projective space"%A)
     Curve_generic_projective.__init__(self, A, X)
     d = self.dimension()
     if d != 1:
         raise ValueError("defining equations (=%s) define a scheme of dimension %s != 1"%(X,d))
Example #2
0
 def __init__(self, A, X):
     if not is_ProjectiveSpace(A):
         raise TypeError, "A (=%s) must be a projective space" % A
     Curve_generic_projective.__init__(self, A, X)
     d = self.dimension()
     if d != 1:
         raise ValueError, "defining equations (=%s) define a scheme of dimension %s != 1" % (
             X, d)
Example #3
0
 def __init__(self, A, f):
     if not (is_ProjectiveSpace(A) and A.dimension != 2):
         raise TypeError("Argument A (= %s) must be a projective plane."%A)
     Curve_generic_projective.__init__(self, A, [f])
 def __init__(self, A, f):
     if not (is_ProjectiveSpace(A) and A.dimension != 2):
         raise TypeError("Argument A (= %s) must be a projective plane." %
                         A)
     Curve_generic_projective.__init__(self, A, [f])