Exemple #1
0
 def __init__(self, A, X):
     if not is_AffineSpace(A):
         raise TypeError("A (=%s) must be an affine space"%A)
     Curve_generic.__init__(self, A, X)
     d = self.dimension()
     if d != 1:
         raise ValueError("defining equations (=%s) define a scheme of dimension %s != 1"%(X,d))
 def __init__(self, A, X):
     if not is_AffineSpace(A):
         raise TypeError("A (=%s) must be an affine space"%A)
     Curve_generic.__init__(self, A, X)
     d = self.dimension()
     if d != 1:
         raise ValueError("defining equations (=%s) define a scheme of dimension %s != 1"%(X,d))
Exemple #3
0
 def __init__(self, A, f):
     P = f.parent()
     if not (is_AffineSpace(A) and A.dimension != 2):
         raise TypeError, "Argument A (= %s) must be an affine plane." % A
     Curve_generic.__init__(self, A, [f])
Exemple #4
0
 def __init__(self, A, f):
     P = f.parent()
     if not (is_AffineSpace(A) and A.dimension != 2):
         raise TypeError("Argument A (= %s) must be an affine plane."%A)
     Curve_generic.__init__(self, A, [f])