Sophie

Sophie

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

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>listLocalSymbols -- display of local symbols and their values</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_list__Symbols.html">next</a> | <a href="_list__Form.html">previous</a> | <a href="_list__Symbols.html">forward</a> | <a href="_list__Form.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>listLocalSymbols -- display of local symbols and their values</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>listLocalSymbols f</tt></div>
</dd></dl>
</div>
</li>
<li>Inputs:<ul><li><span><tt>f</tt>, <span>an object of class <a href="___Pseudocode.html" title="the class of pseudocodes">Pseudocode</a></span>, <span>a <a href="___Symbol.html">symbol</a></span>, <span>a <a href="___Dictionary.html">dictionary</a></span>, or <span>a <a href="___Function.html">function</a></span></span></li>
</ul>
</li>
<li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, a compact display of the symbols in the local dictionaries attached to the closure <tt>f</tt>, and their values</span></li>
</ul>
</li>
</ul>
<table class="examples"><tr><td><pre>i1 : x:=3; y:="hi there"; z:=2^30; f = x->x;</pre>
</td></tr>
<tr><td><pre>i5 : listLocalSymbols f

o5 = symbol   class     value      location of symbol
     ------   -----     -----      ------------------
     x      : ZZ     -- 3          stdio:1:1-1:1     
     y      : String -- "hi there" stdio:1:7-1:7     
     z      : ZZ     -- 1073741824 stdio:1:22-1:22   </pre>
</td></tr>
<tr><td><pre>i6 : listLocalSymbols symbol x

o6 = symbol   class     value      location of symbol
     ------   -----     -----      ------------------
     x      : ZZ     -- 3          stdio:1:1-1:1     
     y      : String -- "hi there" stdio:1:7-1:7     
     z      : ZZ     -- 1073741824 stdio:1:22-1:22   </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>listLocalSymbols</tt></div>
</dd></dl>
</div>
</li>
<li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, a compact display of the symbols in the local dictionaries attached to <a href="_current.html" title="the pseudocode that produced an error">current</a></span></li>
</ul>
</li>
</ul>
<p>This usage works only in the debugger, where <a href="_current.html" title="the pseudocode that produced an error">current</a> has a non-null value.</p>
<table class="examples"><tr><td><pre>i7 : load "Macaulay2Doc/demo1.m2"</pre>
</td></tr>
<tr><td><pre>i8 : g 2
/builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(3):[2]: error: division by zero
/builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(3):[2]: --entering debugger (type help to see debugger commands)
/builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:11-8:13: --source code:
     b := 1/x;</pre>
</td></tr>
<tr><td><pre>ii9 : listLocalSymbols

oo9 = symbol   class              value                                                   location of symbol
      ------   -----              -----                                                   ------------------                                                                           
      x      : ZZ              -- 0                                                       /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:6:6-6:6
      a      : String          -- "hi there"                                              /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:7:6-7:6
      b      : Nothing         -- null                                                    /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:6-8:6
      f      : FunctionClosure -- {*Function[/builddir/build/BUILD/Macaulay2-1.3.1-r1073. /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:6:1-6:1</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>listLocalSymbols(X,f)</tt></div>
</dd></dl>
</div>
</li>
<li>Inputs:<ul><li><span><tt>X</tt>, <span>a <a href="___Type.html">type</a></span></span></li>
<li><span><tt>f</tt>, <span>an object of class <a href="___Pseudocode.html" title="the class of pseudocodes">Pseudocode</a></span>, <span>a <a href="___Symbol.html">symbol</a></span>, <span>a <a href="___Dictionary.html">dictionary</a></span>, or <span>a <a href="___Function.html">function</a></span></span></li>
</ul>
</li>
<li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, a compact display of the symbols in the local dictionaries attached to the closure <tt>f</tt>, and their values, provided their values are instances of the type <tt>X</tt></span></li>
</ul>
</li>
</ul>
<table class="examples"><tr><td><pre>ii10 : h := x -> y -> y+1;</pre>
</td></tr>
<tr><td><pre>ii11 : listLocalSymbols(ZZ,h 11)

oo11 = symbol   class    value location of symbol
       ------   -----    ----- ------------------                                                                           
       x      : ZZ    -- 0     /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:6:6-6:6
       x      : ZZ    -- 11    stdio:2:6-2:6                                                                                </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>listLocalSymbols X</tt></div>
</dd></dl>
</div>
</li>
<li>Outputs:<ul><li><span><span>a <a href="___Net.html">net</a></span>, a compact display of the symbols in the local dictionaries attached to <a href="_current.html" title="the pseudocode that produced an error">current</a> whose values have type <tt>X</tt>.</span></li>
</ul>
</li>
</ul>
<p>This usage works only in the debugger, where <a href="_current.html" title="the pseudocode that produced an error">current</a> has a non-null value.</p>
<table class="examples"><tr><td><pre>ii12 : load "Macaulay2Doc/demo1.m2"
--warning: function g redefined</pre>
</td></tr>
<tr><td><pre>ii13 : g 2
/builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(3):[2]: error: division by zero
/builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(3):[2]: --entering debugger (type help to see debugger commands)
/builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:11-8:13: --source code:
     b := 1/x;</pre>
</td></tr>
<tr><td><pre>iii14 : listLocalSymbols ZZ

ooo14 = symbol   class    value
        ------   -----    -----
        x      : ZZ    -- 0    
        ---------------------------------------------------------------------
        location of symbol
        ------------------                                              
        /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/
        ---------------------------------------------------------------------
                                     
        Macaulay2Doc/demo1.m2:6:6-6:6</pre>
</td></tr>
</table>
</div>
</div>
</div>
<div class="waystouse"><h2>For the programmer</h2>
<p>The object <a href="_list__Local__Symbols.html" title="display of local symbols and their values">listLocalSymbols</a> is <span>a <a href="___Command.html">command</a></span>.</p>
</div>
</div>
</body>
</html>