Macaulay2 » Documentation
Packages » SubalgebraBases :: subring
next | previous | forward | backward | up | index | toc

subring -- Constructs a subring of a polynomial ring.

Synopsis

Description

This function serves as the canonical constructor for the Subring type. For many uses, it is suggested to use a subring, as the computation objects (SAGBIBasis) are handled behind the scenes, and the user experience is more streamlined.

i1 : R = QQ[x];
i2 : S = subring {x^4+x^3, x^2+x}

o2 = QQ[p_0..p_1], subring of R

o2 : Subring
i3 : SB = sagbi S;
i4 : gens SB

o4 = | x2+x x3-x |

             1      2
o4 : Matrix R  <-- R
i5 : (x^3+x^2)%S

o5 = 0

o5 : R

See also

Ways to use subring :

For the programmer

The object subring is a method function with options.