Esempio n. 1
0
File: curve.py Progetto: ye-man/sage
    def union(self, other):
        """
        Return the union of ``self`` and ``other``.

        EXAMPLES::

            sage: x,y,z = PolynomialRing(QQ, 3, names='x,y,z').gens()
            sage: C1 = Curve(z - x)
            sage: C2 = Curve(y - x)
            sage: C1.union(C2).defining_polynomial()
            x^2 - x*y - x*z + y*z
        """
        from .constructor import Curve
        return Curve(AlgebraicScheme_subscheme.union(self, other))
Esempio n. 2
0
    def union(self, other):
        """
        Return the union of ``self`` and ``other``.

        EXAMPLES::

            sage: x,y,z = PolynomialRing(QQ, 3, names='x,y,z').gens()
            sage: C1 = Curve(z - x)
            sage: C2 = Curve(y - x)
            sage: C1.union(C2).defining_polynomial()
            x^2 - x*y - x*z + y*z
        """
        from constructor import Curve
        return Curve(AlgebraicScheme_subscheme.union(self, other))
Esempio n. 3
0
 def union(self, other):
     from constructor import Curve
     return Curve(AlgebraicScheme_subscheme.union(self, other))
Esempio n. 4
0
File: curve.py Progetto: dagss/sage
 def union(self, other):
     from constructor import Curve
     return Curve(AlgebraicScheme_subscheme.union(self, other))