<?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 -- 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="___Ring_sp_st_st_sp__Ring.html">next</a> | <a href="___Ring.html">previous</a> | <a href="___Ring_sp_st_st_sp__Ring.html">forward</a> | <a href="___Ring.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 -- 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>ring M</tt></div> </dd></dl> </div> </li> <li><div class="single">Inputs:<ul><li><span><tt>M</tt>, an object with a ring associated to it</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>a <a href="___Ring.html">ring</a></span>, associated to the input object</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>For example, ring elements, matrices, ideals, modules, chain complexes, varieties, coherent sheaves, etc., all have a base ring naturally associated to them. <table class="examples"><tr><td><pre>i1 : R = ZZ/101[x,y,z];</pre> </td></tr> <tr><td><pre>i2 : ring x o2 = R o2 : PolynomialRing</pre> </td></tr> <tr><td><pre>i3 : M = matrix {{2*x, x+y},{y^3, z*y}}; 2 2 o3 : Matrix R <--- R</pre> </td></tr> <tr><td><pre>i4 : ring M o4 = R o4 : PolynomialRing</pre> </td></tr> <tr><td><pre>i5 : S = QQ[x,y,z];</pre> </td></tr> <tr><td><pre>i6 : ring x o6 = S o6 : PolynomialRing</pre> </td></tr> <tr><td><pre>i7 : I = ideal (x*y, y*z); o7 : Ideal of S</pre> </td></tr> <tr><td><pre>i8 : ring I o8 = S o8 : PolynomialRing</pre> </td></tr> </table> </div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_base__Rings.html" title="store the list of base rings of a ring">baseRings</a> -- store the list of base rings of a ring</span></li> <li><span><a href="_coefficient__Ring.html" title="get the coefficient ring">coefficientRing</a> -- get the coefficient ring</span></li> </ul> </div> <div class="waystouse"><h2>Ways to use <tt>ring</tt> :</h2> <ul><li>ring(CC)</li> <li>ring(ChainComplex)</li> <li>ring(ChainComplexMap)</li> <li>ring(CoherentSheaf)</li> <li>ring(GradedModule)</li> <li>ring(GradedModuleMap)</li> <li>ring(GroebnerBasis)</li> <li>ring(Ideal)</li> <li>ring(Matrix)</li> <li>ring(Module)</li> <li>ring(MonomialIdeal)</li> <li>ring(MutableMatrix)</li> <li>ring(Number)</li> <li>ring(Resolution)</li> <li>ring(RingElement)</li> <li>ring(RR)</li> <li>ring(SheafOfRings)</li> <li>ring(Variety)</li> <li>ring(Vector)</li> </ul> </div> </div> </body> </html>