Sophie

Sophie

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

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>Working with fans - Part 2</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="___Working_spwith_sppolyhedra.html">next</a> | <a href="___Working_spwith_spfans.html">previous</a> | <a href="___Working_spwith_sppolyhedra.html">forward</a> | <a href="___Working_spwith_spfans.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>Working with fans - Part 2</h1>
<div>Now we construct a new fan to show some other functions.<table class="examples"><tr><td><pre>i1 : C1 = posHull matrix {{1,1,-1,-1},{1,-1,1,-1},{1,1,1,1}};</pre>
</td></tr>
<tr><td><pre>i2 : C2 = posHull matrix {{1,1,1},{0,1,-1},{-1,1,1}};</pre>
</td></tr>
<tr><td><pre>i3 : C3 = posHull matrix {{-1,-1,-1},{0,1,-1},{-1,1,1}};</pre>
</td></tr>
<tr><td><pre>i4 : C4 = posHull matrix {{1,-1},{0,0},{-1,-1}};</pre>
</td></tr>
<tr><td><pre>i5 : F = fan {C1,C2,C3,C4}

o5 = {ambient dimension => 3         }
      number of generating cones => 4
      number of rays => 6
      top dimension of the cones => 3

o5 : Fan</pre>
</td></tr>
</table>
<p/>
This is not a ''very nice'' fan, as it is neither complete nor 
 of pure dimension:<table class="examples"><tr><td><pre>i6 : isComplete F

o6 = false</pre>
</td></tr>
<tr><td><pre>i7 : isPure F

o7 = true</pre>
</td></tr>
</table>
<p/>
If we add two more cones the fan becomes complete.<table class="examples"><tr><td><pre>i8 : C5 = posHull matrix {{1,-1,1,-1},{-1,-1,0,0},{1,1,-1,-1}};</pre>
</td></tr>
<tr><td><pre>i9 : C6 = posHull matrix {{1,-1,1,-1},{1,1,0,0},{1,1,-1,-1}};</pre>
</td></tr>
<tr><td><pre>i10 : F = addCone({C5,C6},F)

o10 = {ambient dimension => 3         }
       number of generating cones => 5
       number of rays => 6
       top dimension of the cones => 3

o10 : Fan</pre>
</td></tr>
<tr><td><pre>i11 : isComplete F

o11 = true</pre>
</td></tr>
</table>
<p/>
For a complete fan we can check if it is projective:<table class="examples"><tr><td><pre>i12 : isPolytopal F

o12 = true</pre>
</td></tr>
</table>
<p/>
If the fan is projective, the function returns a polyhedron such that  
 the fan is its  normal fan, otherwise it returns the empty polyhedron. This means 
 our fan is projective.</div>
</div>
</body>
</html>