| Home | Trees | Indices | Help |
|---|
|
|
object --+
|
structure.sage_object.SageObject --+
|
object --+ |
| |
list --+
|
ReducedGroebnerBasis
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
A class for representing reduced Groebner bases as produced by gfan.
INPUT:
groebner_fan -- a GroebnerFan object from an ideal
gens -- the generators of the ideal
gfan_gens -- the generators as a gfan string
EXAMPLES:
sage: R.<a,b> = PolynomialRing(QQ,2)
sage: gf = R.ideal([a^2-b^2,b-a-1]).groebner_fan()
sage: from sage.rings.polynomial.groebner_fan import ReducedGroebnerBasis
sage: ReducedGroebnerBasis(gf,gf[0],gf[0]._gfan_gens())
[b - 1/2, a + 1/2]
|
Returns the reduced Groebner basis as a string.
EXAMPLES:
sage: R.<z1,zz1> = PolynomialRing(QQ,2)
sage: gf = R.ideal([z1^2*zz1-1,zz1-2]).groebner_fan()
sage: rgb1 = gf.reduced_groebner_bases()[0]
sage: rgb1 # indirect doctest
[zz1 - 2, z1^2 - 1/2]
|
Returns the reduced Groebner basis as a string in gfan format.
EXAMPLES:
sage: R.<z1,zz1> = PolynomialRing(QQ,2)
sage: gf = R.ideal([z1^2*zz1-1,zz1-2]).groebner_fan()
sage: rgb1 = gf.reduced_groebner_bases()[0]
sage: rgb1._gfan_gens()
'{zz1-2,z1^2-1/2}'
|
Returns a description of the Groebner fan this basis was derived from.
EXAMPLES:
sage: R.<z1,zz1> = PolynomialRing(QQ,2)
sage: gf = R.ideal([z1^2*zz1-1,zz1-2]).groebner_fan()
sage: rgb1 = gf.reduced_groebner_bases()[0]
sage: rgb1._gfan()
Groebner fan of the ideal:
Ideal (z1^2*zz1 - 1, zz1 - 2) of Multivariate Polynomial Ring in z1, zz1 over Rational Field
|
Do an interactive walk of the Groebner fan starting at this
reduced Groebner basis.
EXAMPLES:
sage: R.<x,y> = PolynomialRing(QQ,2)
sage: G = R.ideal([y^3 - x^2, y^2 - 13*x]).groebner_fan()
sage: G[0].interactive() # not tested
Initializing gfan interactive mode
*********************************************
* Press control-C to return to SAGE *
*********************************************
....
|
Return defining inequalities for the full-dimensional
Groebner cone associated to this marked minimal reduced
Groebner basis.
INPUT:
restrict -- bool (default: False); if True, add an inequality for
each coordinate, so that the cone is restricted to
the positive orthant.
OUTPUT:
tuple of integer vectors
EXAMPLES:
sage: R.<x,y> = PolynomialRing(QQ,2)
sage: G = R.ideal([y^3 - x^2, y^2 - 13*x]).groebner_fan()
sage: poly_cone = G[1].groebner_cone()
sage: poly_cone.facets()
[[-1, 2], [1, -1]]
sage: [g.groebner_cone().facets() for g in G]
[[[0, 1], [1, -2]], [[-1, 2], [1, -1]], [[-1, 1], [1, 0]]]
sage: G[1].groebner_cone(restrict=True).facets()
[[-1, 2], [1, -1]]
|
Return the ideal generated by this basis.
EXAMPLES:
sage: R.<x,y,z> = PolynomialRing(QQ,3)
sage: G = R.ideal([x - z^3, y^2 - 13*x]).groebner_fan()
sage: G[0].ideal()
Ideal (-13*z^3 + y^2, -z^3 + x) of Multivariate Polynomial Ring in x, y, z over Rational Field
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0beta1 on Thu Jul 17 04:23:56 2008 | http://epydoc.sourceforge.net |