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

# vectorToMonomial -- Converts an exponent vector into a monomial.

- Usage:
    `vectorToMonomial(v,R)`
- Inputs:
  - v, a vector,
  - R, a polynomial ring,
- Outputs:
  - a ring element,

## 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

- laurent -- Converts an exponent vector or a deformation into a Laurent monomial.

## Ways to use vectorToMonomial:

- `vectorToMonomial(Vector,PolynomialRing)`

## For the programmer

The object vectorToMonomial is a method function.

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