Sophie

Sophie

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

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>code -- display source code</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_codim.html">next</a> | <a href="___Closest__Fit.html">previous</a> | <a href="_codim.html">forward</a> | <a href="___Closest__Fit.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>code -- display source code</h1>
<div class="single"><h2>Description</h2>
<div><div><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>code f</tt></div>
</dd></dl>
</div>
</li>
<li>Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span> or <span>a <a href="___Command.html">command</a></span></span></li>
</ul>
</li>
<li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the source code of the function or command<tt>f</tt></span></li>
</ul>
</li>
</ul>
<table class="examples"><tr><td><pre>i1 : code listUserSymbols

o1 = /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/m2/debugging.m2:
     listUserSymbols = Command ( type -> listSymbols userSymbols type )
     ------------------------------------------------------------------------
     173:34-173:61: --source code:</pre>
</td></tr>
</table>
</div>
<div><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>code(f,X)</tt></div>
</dd></dl>
</div>
</li>
<li>Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span> or <span>a <a href="___Keyword.html">keyword</a></span></span></li>
<li><span><tt>X</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
</ul>
</li>
<li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the source code of method for applying <tt>f</tt> to an argument of type <tt>X</tt></span></li>
</ul>
</li>
</ul>
<table class="examples"><tr><td><pre>i2 : code(res,Ideal)

o2 = -- code for method: resolution(Ideal)
     /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/m2/res.m2:210:45-214:6: --source code:
     resolution Ideal := ChainComplex => options -> (I) -> resolution(
          if I.cache.?quotient 
          then I.cache.quotient
          else I.cache.quotient = (ring I)^1/I,
          options)</pre>
</td></tr>
</table>
</div>
<div><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>code(f,X,Y)</tt></div>
</dd></dl>
</div>
</li>
<li>Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span> or <span>a <a href="___Keyword.html">keyword</a></span></span></li>
<li><span><tt>X</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
<li><span><tt>Y</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
</ul>
</li>
<li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the source code of method for applying <tt>f</tt> to arguments of type <tt>X</tt> and <tt>Y</tt></span></li>
</ul>
</li>
</ul>
<table class="examples"><tr><td><pre>i3 : code(symbol :, Ideal, Ideal)

o3 = -- code for method: Ideal : Ideal
     /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/m2/colon.m2:162:
     Ideal : Ideal := Ideal => (I,J) -> quotient(I,J)
     ------------------------------------------------------------------------
     33-162:47: --source code:</pre>
</td></tr>
</table>
</div>
<div><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>code(f,X,Y,Z)</tt></div>
</dd></dl>
</div>
</li>
<li>Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span> or <span>a <a href="___Keyword.html">keyword</a></span></span></li>
<li><span><tt>X</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
<li><span><tt>Y</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
<li><span><tt>Z</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
</ul>
</li>
<li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the source code of method for applying <tt>f</tt> to arguments of type <tt>X</tt>, <tt>Y, and </tt><tt>Z</tt></span></li>
</ul>
</li>
</ul>
</div>
<div><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>code(f,X,Y,Z,T)</tt></div>
</dd></dl>
</div>
</li>
<li>Inputs:<ul><li><span><tt>f</tt>, <span>a <a href="___Function.html">function</a></span> or <span>a <a href="___Keyword.html">keyword</a></span></span></li>
<li><span><tt>X</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
<li><span><tt>Y</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
<li><span><tt>Z</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
<li><span><tt>T</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
</ul>
</li>
<li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the source code of method for applying <tt>f</tt> to arguments of type <tt>X</tt>, <tt>Y, and </tt><tt>Z</tt>, and <tt>T</tt></span></li>
</ul>
</li>
</ul>
</div>
<div><h2>Synopsis</h2>
<ul><li><div class="list"><dl class="element"><dt class="heading">Usage: </dt><dd class="value"><div><tt>code {v,w,...}</tt></div>
</dd></dl>
</div>
</li>
<li>Inputs:<ul><li><span><span>a <a href="___List.html">list</a></span>, {v,w,...}</span></li>
</ul>
</li>
<li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, the source code of the functions or commands<tt>v,w,...</tt>.  Such a list can be obtained, for example, with <a href="_methods.html" title="list methods">methods</a>.</span></li>
</ul>
</li>
</ul>
<table class="examples"><tr><td><pre>i4 : code methods use

o4 = -- code for method: use(Monoid)
     /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/m2/orderedmonoidrings.m2:7:17-7:46: --source code:
     use Monoid := x -> ( if x.?use then x.use x; x)
     ---------------------------------
     -- code for method: use(Package)
     /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/m2/packages.m2:416:20-426:31: --source code:
     use Package := pkg -> (
          a := member(pkg,loadedPackages);
          b := member(pkg.Dictionary,dictionaryPath);
          if a and not b then error("use: package ",toString pkg," appears in loadedPackages, but its dictionary is missing from dictionaryPath");
          if b and not a then error("use: package ",toString pkg," does not appear in loadedPackages, but its dictionary appears in dictionaryPath");
          if not a and not b then (
               loadedPackages = prepend(pkg,loadedPackages);
               dictionaryPath = prepend(pkg.Dictionary,dictionaryPath);
               );
          if pkg.?use then pkg.use pkg;
          )
     ---------------------------------
     -- code for method: use(Ring)
     /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/m2/enginering.m2:291:15-296:6: --source code:
     use Ring := R -> (
          if R.?ring then use R.ring;                            -- I'm not sure what this is for.  Which rings have this key?
          generators R;
          if R.?generators and R.?generatorSymbols then scan(R.generatorSymbols,R.generators,(sym,val) -> sym &lt;- val);
          if R.?use then R.use R;
          R)
     ---------------------------------
     -- code for method: use(Thing)
     function 'identity': source code not available</pre>
</td></tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>