Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » lists and sequences » BasicList » IndexedVariable » baseName
next | previous | forward | backward | up | index | toc

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:

  • baseName(IndexedVariable)
  • baseName(IndexedVariableTable)
  • baseName(MonoidElement)
  • baseName(RingElement)
  • baseName(Subscript)
  • baseName(Symbol)
  • baseName(Thing)

For the programmer

The object baseName is a method function.


The source of this document is in Macaulay2Doc/doc_rings.m2:331:0.