<?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>isCM -- test whether a polynomial ring modulo a homogeneous ideal is Cohen-Macaulay</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_is__H__F.html">next</a> | <a href="_hilbert__Funct_lp..._cm_sp__Max__Degree_sp_eq_gt_sp..._rp.html">previous</a> | <a href="_is__H__F.html">forward</a> | <a href="_hilbert__Funct_lp..._cm_sp__Max__Degree_sp_eq_gt_sp..._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>isCM -- test whether a polynomial ring modulo a homogeneous ideal is Cohen-Macaulay</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>B=isCM I</tt></div> </dd></dl> </div> </li> <li><div class="single">Inputs:<ul><li><span><tt>I</tt>, <span>an <a href="../../Macaulay2Doc/html/___Ideal.html">ideal</a></span>, a homogeneous ideal in a polynomial ring</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><tt>B</tt>, <span>a <a href="../../Macaulay2Doc/html/___Boolean.html">Boolean value</a></span>, <tt>true</tt> if <tt>(ring I)/I</tt> is Cohen-Macaulay and <tt>false</tt> otherwise</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div><div><tt>isCM</tt> takes a homogeneous ideal <tt>I</tt> in a polynomial ring <tt>R</tt> and, by computing the projective dimension and codimension of <tt>I</tt>, determines whether <tt>R/I</tt> is Cohen-Macaulay. Of course, <tt>isCM</tt> works only if <i>Macaulay2</i> can compute the projective dimension of <tt>I</tt>.</div> <table class="examples"><tr><td><pre>i1 : R=ZZ/32003[a..c];</pre> </td></tr> <tr><td><pre>i2 : isCM(ideal(a^2,b^4)) --complete intersection o2 = true</pre> </td></tr> <tr><td><pre>i3 : isCM(ideal(a^3,b^5,c^4,a*c^3)) --Artinian o3 = true</pre> </td></tr> <tr><td><pre>i4 : isCM(ideal(a^3,a*b^2)) o4 = false</pre> </td></tr> </table> </div> </div> <div class="waystouse"><h2>Ways to use <tt>isCM</tt> :</h2> <ul><li>isCM(Ideal)</li> </ul> </div> </div> </body> </html>