<?xml version="1.0" encoding="utf-8" ?> <!-- for emacs: -*- coding: utf-8 -*- --> <!-- Apache may like this line in the file .htaccess: AddCharset utf-8 .html --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" "http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg-flat.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head><title>baseName -- the base name of a generator</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_base__Rings.html">next</a> | <a href="_base__Filename.html">previous</a> | <a href="_base__Rings.html">forward</a> | <a href="_base__Filename.html">backward</a> | up | <a href="index.html">top</a> | <a href="master.html">index</a> | <a href="toc.html">toc</a> | <a href="http://www.math.uiuc.edu/Macaulay2/">Macaulay2 web site</a></div> </td> </tr> </table> <hr/> <div><h1>baseName -- the base name of a generator</h1> <div class="single"><h2>Description</h2> <div><tt>baseName x</tt> -- returns the variable or symbol upon which an indexed variable table or a generator of a monoid or polynomial ring is based.<table class="examples"><tr><td><pre>i1 : R = QQ[x_1 .. x_4,y] o1 = R o1 : PolynomialRing</pre> </td></tr> <tr><td><pre>i2 : y o2 = y o2 : R</pre> </td></tr> <tr><td><pre>i3 : baseName y o3 = y o3 : Symbol</pre> </td></tr> <tr><td><pre>i4 : x_1 o4 = x 1 o4 : R</pre> </td></tr> <tr><td><pre>i5 : baseName x_1 o5 = x 1 o5 : IndexedVariable</pre> </td></tr> <tr><td><pre>i6 : x o6 = x o6 : IndexedVariableTable</pre> </td></tr> <tr><td><pre>i7 : baseName x o7 = x o7 : Symbol</pre> </td></tr> </table> </div> </div> <div class="waystouse"><h2>Ways to use <tt>baseName</tt> :</h2> <ul><li>baseName(Holder)</li> <li>baseName(IndexedVariable)</li> <li>baseName(IndexedVariableTable)</li> <li>baseName(RingElement)</li> <li>baseName(Subscript)</li> <li>baseName(Symbol)</li> </ul> </div> </div> </body> </html>