Macaulay2 » Documentation
Packages » Normaliz :: numgens(MonomialSubalgebra)
next | previous | forward | backward | up | index | toc

numgens(MonomialSubalgebra) -- number of generators of a monomial subalgebra

Synopsis

Description

i1 : R=ZZ/37[x,y,z];
i2 : S=createMonomialSubalgebra {x^2*y, x*z, z^3}

o2 = MonomialSubalgebra{cache => CacheTable{}       }
                                        2         3
                        generators => {x y, x*z, z }
                        ring => R

o2 : MonomialSubalgebra of R
i3 : numgens S

o3 = 3

Ways to use this method: