<?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>dimension, codimension, and degree</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_intersection_spof_spideals.html">next</a> | <a href="_extracting_spgenerators_spof_span_spideal.html">previous</a> | <a href="_intersection_spof_spideals.html">forward</a> | <a href="_extracting_spgenerators_spof_span_spideal.html">backward</a> | <a href="_ideals.html">up</a> | <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> <div><a href="index.html" title="">Macaulay2Doc</a> > <a href="_ideals.html" title="">ideals</a> > <a href="_dimension_cm_spcodimension_cm_spand_spdegree.html" title="">dimension, codimension, and degree</a></div> <hr/> <div><h1>dimension, codimension, and degree</h1> <div>Use <a href="_dim.html" title="compute the Krull dimension">dim</a>, <a href="_codim.html" title="compute the codimension">codim</a>, and <a href="_degree.html" title="">degree</a> to compute the dimension, codimension and degree, respectively, of an ideal. The functions <a href="_dim.html" title="compute the Krull dimension">dim</a> and <a href="_degree.html" title="">degree</a> compute the dimension and degree of the ring <tt>R/I</tt>.<table class="examples"><tr><td><pre>i1 : R = ZZ/101[x,y,z];</pre> </td></tr> <tr><td><pre>i2 : I = ideal(x^3-y*z^2,x*y-z^2,x*z); o2 : Ideal of R</pre> </td></tr> <tr><td><pre>i3 : dim I o3 = 1</pre> </td></tr> <tr><td><pre>i4 : codim I o4 = 2</pre> </td></tr> <tr><td><pre>i5 : degree I o5 = 2</pre> </td></tr> </table> </div> </div> </body> </html>