next | previous | forward | backward | up | top | index | toc | Macaulay2 website
SubalgebraBases :: subring

subring -- Constructs a subring of a polynomial ring.

Synopsis

Description

This function serves as the canonical constructor for the Subring type.

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.