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

# vars(MonomialSubalgebra) -- row matrix of the generators of a monomial subalgebra

- Function: vars
- Usage:
    `vars S`
- Inputs:
  - a monomial subalgebra,
- Outputs:
  - a matrix, with one row whose entries are the generators of the monomial subalgebra S

## 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 : vars S

    o3 = | x2y xz z3 |

                 1      3
    o3 : Matrix R  <-- R

## See also

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

## Ways to use this method:

- vars(MonomialSubalgebra) -- row matrix of the generators of a monomial subalgebra

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Normaliz.m2:874:0.