Macaulay2 » Documentation
Packages » SRdeformations :: vectorToMonomial
next | previous | forward | backward | up | index | toc

vectorToMonomial -- Converts an exponent vector into a monomial.

Synopsis

Description

Converts the exponent vector v into a monomial in the variables of R. The number of variables of R has to match the length of v.

i1 : R=QQ[x_0..x_4]

o1 = R

o1 : PolynomialRing
i2 : m=vector {1,2,1,0,0}

o2 = | 1 |
     | 2 |
     | 1 |
     | 0 |
     | 0 |

       5
o2 : ZZ
i3 : vectorToMonomial(m,R)

        2
o3 = x x x
      0 1 2

o3 : R

See also

Ways to use vectorToMonomial :

For the programmer

The object vectorToMonomial is a method function.