<?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>dim(Module) -- compute the Krull dimension</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_dim_lp__Projective__Hilbert__Polynomial_rp.html">next</a> | <a href="_dim_lp__Ideal_rp.html">previous</a> | <a href="_dim_lp__Projective__Hilbert__Polynomial_rp.html">forward</a> | <a href="_dim_lp__Ideal_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>dim(Module) -- compute the Krull dimension</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>dim M</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_dim.html" title="compute the Krull dimension">dim</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>M</tt>, <span>a <a href="___Module.html">module</a></span></span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>an <a href="___Z__Z.html">integer</a></span></span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>Computes the Krull dimension of the module <tt>M</tt><table class="examples"><tr><td><pre>i1 : R = ZZ/31991[a,b,c,d] o1 = R o1 : PolynomialRing</pre> </td></tr> <tr><td><pre>i2 : I = monomialCurveIdeal(R,{1,2,3}) 2 2 o2 = ideal (c - b*d, b*c - a*d, b - a*c) o2 : Ideal of R</pre> </td></tr> <tr><td><pre>i3 : M = Ext^1(I,R) o3 = cokernel {-3} | c b a | {-3} | d c b | 2 o3 : R-module, quotient of R</pre> </td></tr> <tr><td><pre>i4 : dim M o4 = 2</pre> </td></tr> <tr><td><pre>i5 : N = Ext^0(I,R) o5 = image {-2} | c2-bd | {-2} | bc-ad | {-2} | b2-ac | 3 o5 : R-module, submodule of R</pre> </td></tr> <tr><td><pre>i6 : dim N o6 = 4</pre> </td></tr> </table> Note that the dimension of the zero module is <tt>-1</tt>.</div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_dim_lp__Ring_rp.html" title="compute the Krull dimension">dim(Ring)</a> -- compute the Krull dimension</span></li> <li><span><a href="_dim_lp__Ideal_rp.html" title="compute the Krull dimension">dim(Ideal)</a> -- compute the Krull dimension</span></li> </ul> </div> </div> </body> </html>