<?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>hilbertPolynomial(ProjectiveVariety) -- compute the Hilbert polynomial of the projective variety</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_hilbert__Polynomial_lp__Ring_rp.html">next</a> | <a href="_hilbert__Polynomial_lp__Module_rp.html">previous</a> | <a href="_hilbert__Polynomial_lp__Ring_rp.html">forward</a> | <a href="_hilbert__Polynomial_lp__Module_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>hilbertPolynomial(ProjectiveVariety) -- compute the Hilbert polynomial of the projective variety</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>hilbertPolynomial V</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_hilbert__Polynomial.html" title="compute the Hilbert polynomial">hilbertPolynomial</a></span></li> <li><div class="single">Inputs:<ul><li><span><tt>V</tt>, <span>a <a href="___Projective__Variety.html">projective variety</a></span></span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>a <a href="___Projective__Hilbert__Polynomial.html">projective Hilbert polynomial</a></span>, unless the option Projective is false</span></li> </ul> </div> </li> <li><div class="single"><a href="_using_spfunctions_spwith_spoptional_spinputs.html">Optional inputs</a>:<ul><li><span><a href="_hilbert__Polynomial_lp..._cm_sp__Projective_sp_eq_gt_sp..._rp.html">Projective => ...</a>, -- choose how to display the Hilbert polynomial</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>We compute an example of the <a href="_hilbert__Polynomial.html">Hilbert polynomial</a> of a projective Hilbert variety. This is the same as the Hilbert polynomial of its coordinate ring.<table class="examples"><tr><td><pre>i1 : R = QQ[a..d];</pre> </td></tr> <tr><td><pre>i2 : I = monomialCurveIdeal(R, {1,3,4}); o2 : Ideal of R</pre> </td></tr> <tr><td><pre>i3 : V = Proj(R/I) o3 = V o3 : ProjectiveVariety</pre> </td></tr> <tr><td><pre>i4 : h = hilbertPolynomial V o4 = - 3*P + 4*P 0 1 o4 : ProjectiveHilbertPolynomial</pre> </td></tr> <tr><td><pre>i5 : hilbertPolynomial(V, Projective=>false) o5 = 4i + 1 o5 : QQ[i]</pre> </td></tr> </table> <p/> These Hilbert polynomials can serve as <a href="_hilbert__Function.html">Hilbert functions</a> too since the values of the Hilbert polynomial eventually are the same as the Hilbert function of the sheaf of rings or of the underlying ring.<table class="examples"><tr><td><pre>i6 : apply(5, k-> h(k)) o6 = {1, 5, 9, 13, 17} o6 : List</pre> </td></tr> <tr><td><pre>i7 : apply(5, k-> hilbertFunction(k,ring V)) o7 = {1, 4, 9, 13, 17} o7 : List</pre> </td></tr> </table> </div> </div> </div> </body> </html>