Пример #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)
Пример #2
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)
Пример #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])
Пример #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])