Sophie

Sophie

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

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>addCone -- adds cones to a Fan</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_affine__Hull.html">next</a> | <a href="index.html">previous</a> | <a href="_affine__Hull.html">forward</a> | <a href="index.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>addCone -- adds cones to a Fan</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> F1 = addCone(C,F) </tt><br/><tt>F1 = addCone(L,F)</tt></div>
</dd></dl>
</div>
</li>
<li><div class="single">Inputs:<ul><li><span><tt>C</tt>, <span>a <a href="___Cone.html">convex rational cone</a></span></span></li>
<li><span><tt>L</tt>, <span>a <a href="../../Macaulay2Doc/html/___List.html">list</a></span>, with elements of class <a href="___Cone.html" title="the class of all rational convex polyhedral cones">Cone</a> or <a href="___Fan.html" title="the class of all fans">Fan</a></span></li>
<li><span><tt>F</tt>, <span>an object of class <a href="___Fan.html" title="the class of all fans">Fan</a></span></span></li>
</ul>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><tt>F1</tt>, <span>an object of class <a href="___Fan.html" title="the class of all fans">Fan</a></span></span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div><p/>
If <tt>addCone</tt> is applied to a <a href="___Cone.html" title="the class of all rational convex polyhedral cones">Cone</a> and a <a href="___Fan.html" title="the class of all fans">Fan</a> 
 it adds the Cone to the Fan if they are in the same ambient space, if the Cone is 
 compatible with every generating Cone of <tt>F</tt>, but is not a face of one 
 of them. If one of the first two conditions fails, there will be an error and no fan 
 will be returned. The pairs of incompatible cones can be accessed with the 
 function <a href="_incomp__Cones.html" title="returns the pairs of incompatible cones">incompCones</a>. If the last condition fails, then the cone is already in 
 the fan as a face of one of the cones, so it does not have to be added. The conditions 
 are checked in this order.<p/>
If <tt>addCone</tt> is applied to a <a href="../../Macaulay2Doc/html/___List.html" title="the class of all lists -- {...}">List</a> and a <a href="___Fan.html" title="the class of all fans">Fan</a>, then 
 the function adds the list cone by cone and stops if one of the three conditions 
 fails for one of the cones. There is again an error for the first two conditions. The 
 pairs of incompatible cones can again be retrieved using <a href="_incomp__Cones.html" title="returns the pairs of incompatible cones">incompCones</a>.<p/>
If applied to a pair of fans it adds the generating cones of the first 
 fan to the second fan, again checking for the same conditions as above.<p/>
 As an example, we make a fan consisting of the following cone and 
 try to add an adjacent orthant.<table class="examples"><tr><td><pre>i1 : C = posHull matrix {{1,0,0},{0,1,1},{0,0,1}};</pre>
</td></tr>
<tr><td><pre>i2 : F = fan C

o2 = {ambient dimension => 3         }
      number of generating cones => 1
      number of rays => 3
      top dimension of the cones => 3

o2 : Fan</pre>
</td></tr>
<tr><td><pre>i3 : C = posHull matrix {{-1,0,0},{0,1,0},{0,0,1}};</pre>
</td></tr>
<tr><td><pre>i4 : incompCones(C,F)

o4 = {({ambient dimension => 3           }, {ambient dimension => 3         
        dimension of lineality space => 0    dimension of lineality space =>
        dimension of the cone => 3           dimension of the cone => 3
        number of facets => 3                number of facets => 3
        number of rays => 3                  number of rays => 3
     ------------------------------------------------------------------------
      })}
     0

o4 : List</pre>
</td></tr>
</table>
<p/>
This shows that the two cones do not intersect in a common face, but 
 if we divide C into two parts, we get a fan.<table class="examples"><tr><td><pre>i5 : C1 = intersection {C, (matrix {{0,1,-1}}, matrix {{0}})};</pre>
</td></tr>
<tr><td><pre>i6 : C2 = intersection {C, (matrix {{0,-1,1}}, matrix {{0}})};</pre>
</td></tr>
<tr><td><pre>i7 : F = addCone({C1,C2},F)

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

o7 : Fan</pre>
</td></tr>
</table>
</div>
</div>
<div class="waystouse"><h2>Ways to use <tt>addCone</tt> :</h2>
<ul><li>addCone(Cone,Fan)</li>
<li>addCone(Fan,Fan)</li>
<li>addCone(List,Fan)</li>
</ul>
</div>
</div>
</body>
</html>