next
|
previous
|
forward
|
backward
| up |
top
|
index
|
toc
|
Macaulay2 website
SubalgebraBases
::
numgens(Subring)
numgens(Subring) -- Returns the number of generators of a subring.
Synopsis
Function:
numgens
Usage:
n = numgens subR
Inputs:
subR
,
an instance of the type
Subring
,
Outputs:
n
,
an
integer
, the number of generators of subR.
Description
i1 : gndR = QQ[x,y,z];
i2 : subR = subring({x^2, y^2, z^2});
i3 : numgens subR o3 = 3
See also
generators(Subring)
-- Returns the generators of a subring as a one-row matrix.
ambient(Subring)
-- Returns the ambient ring (ring containing the generators) of a subring.
ring(Subring)
-- Returns tensor ring