Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 7ebd25ac536d248d499a3ce2acda963a > files > 6352

Macaulay2-1.3.1-8.fc15.i686.rpm

<?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>fVector -- the f-vector of a simplicial complex</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_ideal_lp__Simplicial__Complex_rp.html">next</a> | <a href="_facets.html">previous</a> | <a href="_ideal_lp__Simplicial__Complex_rp.html">forward</a> | <a href="_facets.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>fVector -- the f-vector of a simplicial complex</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>f = fVector D</tt></div>
</dd></dl>
</div>
</li>
<li><div class="single">Inputs:<ul><li><span><tt>D</tt>, <span>a <a href="___Simplicial__Complex.html">simplicial complex</a></span></span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><tt>f</tt>, <span>a <a href="../../Macaulay2Doc/html/___List.html">list</a></span>, such that <tt>f#i</tt> is the number of faces in <tt>D</tt> of dimension <tt>i</tt>, where <tt>-1 &lt;= i &lt;= dim D</tt></span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div><table class="examples"><tr><td><pre>i1 : loadPackage "SimplicialComplexes";</pre>
</td></tr>
</table>
The pentagonal bipyramid has 7 vertices, 15 edges and 10 triangles.<table class="examples"><tr><td><pre>i2 : R = ZZ[a..g];</pre>
</td></tr>
<tr><td><pre>i3 : bipyramid = simplicialComplex monomialIdeal(
                    a*g, b*d, b*e, c*e, c*f, d*f)

o3 = | efg bfg deg cdg bcg aef abf ade acd abc |

o3 : SimplicialComplex</pre>
</td></tr>
<tr><td><pre>i4 : f = fVector bipyramid

o4 = HashTable{-1 => 1}
               0 => 7
               1 => 15
               2 => 10

o4 : HashTable</pre>
</td></tr>
<tr><td><pre>i5 : f#0

o5 = 7</pre>
</td></tr>
<tr><td><pre>i6 : f#1

o6 = 15</pre>
</td></tr>
<tr><td><pre>i7 : f#2

o7 = 10</pre>
</td></tr>
</table>
Every simplicial complex other than the void complex has a unique face of dimension -1.<table class="examples"><tr><td><pre>i8 : void = simplicialComplex monomialIdeal 1_R

o8 = 0

o8 : SimplicialComplex</pre>
</td></tr>
<tr><td><pre>i9 : fVector void

o9 = HashTable{-1 => 0}

o9 : HashTable</pre>
</td></tr>
</table>
For a larger examp;le we consider the polarization of an artinian monomial ideal from section 3.2 in Miller-Sturmfels, Combinatorial Commutative Algebra.<table class="examples"><tr><td><pre>i10 : S = ZZ[x_1..x_4, y_1..y_4, z_1..z_4];</pre>
</td></tr>
<tr><td><pre>i11 : I = monomialIdeal(x_1*x_2*x_3*x_4,
                     y_1*y_2*y_3*y_4,
                     z_1*z_2*z_3*z_4,
                     x_1*x_2*x_3*y_1*y_2*z_1,
                     x_1*y_1*y_2*y_3*z_1*z_2,
                     x_1*x_2*y_1*z_1*z_2*z_3);

o11 : MonomialIdeal of S</pre>
</td></tr>
<tr><td><pre>i12 : D = simplicialComplex I;</pre>
</td></tr>
<tr><td><pre>i13 : fVector D

o13 = HashTable{-1 => 1 }
                0 => 12
                1 => 66
                2 => 220
                3 => 492
                4 => 768
                5 => 837
                6 => 609
                7 => 264
                8 => 51

o13 : HashTable</pre>
</td></tr>
</table>
<p/>
The f-vector is computed using the Hilbert series of the Stanley-Reisner ideal.  For example, see Hosten and Smith's chapter Monomial Ideals, in Computations in Algebraic Geometry with Macaulay2, Springer 2001.</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="index.html" title="simplicial complexes">SimplicialComplexes</a> -- simplicial complexes</span></li>
<li><span><a href="_faces.html" title="the i-faces of a simplicial complex ">faces</a> -- the i-faces of a simplicial complex </span></li>
</ul>
</div>
<div class="waystouse"><h2>Ways to use <tt>fVector</tt> :</h2>
<ul><li>fVector(SimplicialComplex)</li>
</ul>
</div>
</div>
</body>
</html>