next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Macaulay2Doc :: baseName

baseName -- the base name of a generator

Description

baseName x -- returns the variable or symbol upon which an indexed variable table or a generator of a monoid or polynomial ring is based.
i1 : R = QQ[x_1 .. x_4,y]

o1 = R

o1 : PolynomialRing
i2 : y

o2 = y

o2 : R
i3 : baseName y

o3 = y

o3 : Symbol
i4 : x_1

o4 = x
      1

o4 : R
i5 : baseName x_1

o5 = x
      1

o5 : IndexedVariable
i6 : x

o6 = x

o6 : IndexedVariableTable
i7 : baseName x

o7 = x

o7 : Symbol

Ways to use baseName :