Macaulay2 » Documentation
Packages » GameTheory :: getVariableToIndexset
next | previous | forward | backward | up | index | toc

getVariableToIndexset -- retrieve a polynomial ring variable by its index tuple

Description

Given a ring $R = \mathbb{Q}[p_{\{i,j\}}]$, this method retrieves $p_{\{i,j\}}$ when passed the index $\{i,j\}$.

i1 : R = QQ[p_{0,0}, p_{0,1}, p_{1,0}, p_{1,1}]

o1 = R

o1 : PolynomialRing
i2 : getVariableToIndexset(R, {1,0})

o2 = p
      {1, 0}

o2 : R

See also

Ways to use getVariableToIndexset:

  • getVariableToIndexset(Ring,List)

For the programmer

The object getVariableToIndexset is a method function.


The source of this document is in GameTheory.m2:1178:0.