Sophie

Sophie

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

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>VirtualTally</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="___Visible__List_sp_sl_sp__Function.html">next</a> | <a href="_view__Help.html">previous</a> | <a href="___Visible__List_sp_sl_sp__Function.html">forward</a> | <a href="_view__Help.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>VirtualTally</h1>
<div class="single"><h2>Description</h2>
<div>The only difference between this class and <a href="___Tally.html" title="the class of all tally results">Tally</a> is that this class allows negative numbers.<table class="examples"><tr><td><pre>i1 : x = tally {a,b,b,c,c,c}

o1 = Tally{a => 1}
           b => 2
           c => 3

o1 : Tally</pre>
</td></tr>
<tr><td><pre>i2 : y = tally {a,a,a,b,b,c}

o2 = Tally{a => 3}
           b => 2
           c => 1

o2 : Tally</pre>
</td></tr>
<tr><td><pre>i3 : x' = new VirtualTally from x

o3 = VirtualTally{a => 1}
                  b => 2
                  c => 3

o3 : VirtualTally</pre>
</td></tr>
<tr><td><pre>i4 : y' = new VirtualTally from y

o4 = VirtualTally{a => 3}
                  b => 2
                  c => 1

o4 : VirtualTally</pre>
</td></tr>
<tr><td><pre>i5 : x-y

o5 = Tally{c => 2}

o5 : Tally</pre>
</td></tr>
<tr><td><pre>i6 : x'-y'

o6 = VirtualTally{c => 2}

o6 : VirtualTally</pre>
</td></tr>
</table>
</div>
</div>
<div class="single"><h2>See also</h2>
<ul><li><span><a href="___Betti__Tally.html" title="the class of all Betti tallies">BettiTally</a> -- the class of all Betti tallies</span></li>
</ul>
</div>
<div class="waystouse"><h2>Types of virtual tally :</h2>
<ul><li><span><a href="___Betti__Tally.html" title="the class of all Betti tallies">BettiTally</a> -- the class of all Betti tallies</span></li>
</ul>
<h2>Functions and methods returning a virtual tally :</h2>
<ul><li>VirtualTally - VirtualTally</li>
<li><span><tt>VirtualTally + VirtualTally</tt> (missing documentation<!-- tag: (+,VirtualTally,VirtualTally) -->)</span></li>
</ul>
<h2>Methods that use a virtual tally :</h2>
<ul><li><span><tt>- VirtualTally</tt> (missing documentation<!-- tag: (-,VirtualTally) -->)</span></li>
</ul>
</div>
<div class="waystouse"><h2>For the programmer</h2>
<p>The object <a href="___Virtual__Tally.html" title="">VirtualTally</a> is <span>a <a href="___Type.html">type</a></span>, with ancestor classes <a href="___Tally.html" title="the class of all tally results">Tally</a> &lt; <a href="___Hash__Table.html" title="the class of all hash tables">HashTable</a> &lt; <a href="___Thing.html" title="the class of all things">Thing</a>.</p>
</div>
</div>
</body>
</html>