<?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>ring(SimplicialComplex) -- get the associated ring of an object</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_simplicial__Chain__Complex.html">next</a> | <a href="_monomial__Ideal_lp__Simplicial__Complex_rp.html">previous</a> | <a href="_simplicial__Chain__Complex.html">forward</a> | <a href="_monomial__Ideal_lp__Simplicial__Complex_rp.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>ring(SimplicialComplex) -- get the associated ring of an object</h1> <div class="single"><h2>Synopsis</h2> <ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>R = ring D</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="../../Macaulay2Doc/html/_ring.html" title="get the associated ring of an object">ring</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>D</tt>, <span>a <a href="___Simplicial__Complex.html">simplicial complex</a></span></span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><tt>R</tt>, <span>a <a href="../../Macaulay2Doc/html/___Ring.html">ring</a></span>, the polynomial ring used to define <tt>D</tt></span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>The vertices of every simplicial complex are variables in the polynomial ring <tt>R</tt>, and subsets of vertices, such as faces, are represented as squarefree monomials in <tt>R</tt>.<table class="examples"><tr><td><pre>i1 : loadPackage "SimplicialComplexes";</pre> </td></tr> </table> <table class="examples"><tr><td><pre>i2 : R = QQ[a..d];</pre> </td></tr> <tr><td><pre>i3 : D = simplicialComplex monomialIdeal(a*b*c*d);</pre> </td></tr> <tr><td><pre>i4 : ring D o4 = R o4 : PolynomialRing</pre> </td></tr> <tr><td><pre>i5 : coefficientRing D o5 = QQ o5 : Ring</pre> </td></tr> <tr><td><pre>i6 : S = ZZ[w..z];</pre> </td></tr> <tr><td><pre>i7 : E = simplicialComplex monomialIdeal(w*x*y*z);</pre> </td></tr> <tr><td><pre>i8 : ring E o8 = S o8 : PolynomialRing</pre> </td></tr> <tr><td><pre>i9 : coefficientRing E o9 = ZZ o9 : Ring</pre> </td></tr> </table> <p/> There is a bijection between simplicial complexes and squarefree monomial ideals. This package exploits this correspondence by using commutative algebra routines to perform most of the necessary computations.</div> </div> <div class="single"><h2>Caveat</h2> <div>Some operations depend on the choice of ring, or its coefficient ring</div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="index.html" title="simplicial complexes">SimplicialComplexes</a> -- simplicial complexes</span></li> <li><span><a href="_coefficient__Ring_lp__Simplicial__Complex_rp.html" title="get the coefficient ring">coefficientRing(SimplicialComplex)</a> -- get the coefficient ring</span></li> </ul> </div> </div> </body> </html>