Sophie

Sophie

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

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>current -- the pseudocode that produced an error</title>
<link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/>
</head>
<body>
<table class="buttons">
  <tr>
    <td><div><a href="_current__File__Directory.html">next</a> | <a href="_csch.html">previous</a> | <a href="_current__File__Directory.html">forward</a> | <a href="_csch.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>current -- the pseudocode that produced an error</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>current</tt></div>
</dd></dl>
</div>
</li>
<li><div class="single">Outputs:<ul><li><span><span>an object of class <a href="___Pseudocode.html" title="the class of pseudocodes">Pseudocode</a></span>, the pseudocode that produced an error, or <a href="_null.html" title="the unique member of the empty class">null</a>, if none</span></li>
</ul>
</div>
</li>
</ul>
</div>
<div class="single"><h2>Description</h2>
<div>Use <a href="_value.html" title="evaluate">value</a> to evaluate the code again, for debugging purposes.<table class="examples"><tr><td><pre>i1 : load "Macaulay2Doc/demo1.m2"</pre>
</td></tr>
<tr><td><pre>i2 : code g

o2 = /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:11:7-14:8: --source code:
     g = y -> (
          c := f(y-1);
          d := f(y-2);
          c+d)</pre>
</td></tr>
<tr><td><pre>i3 : 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>ii4 : code current

oo4 = /builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/
           b := 1/x;
      -----------------------------------------------------------------------
      Macaulay2Doc/demo1.m2:8:11-8:13: --source code:</pre>
</td></tr>
<tr><td><pre>ii5 : disassemble current

oo5 = (2-OP / 1 (fetch 0 0))</pre>
</td></tr>
<tr><td><pre>ii6 : value current
/builddir/build/BUILD/Macaulay2-1.3.1-r10737/Macaulay2/packages/Macaulay2Doc/demo1.m2:8:12:(3):[0]: error: division by zero</pre>
</td></tr>
<tr><td><pre>ii7 : x = 11

oo7 = 11</pre>
</td></tr>
<tr><td><pre>ii8 : value current

       1
oo8 = --
      11

oo8 : QQ</pre>
</td></tr>
<tr><td><pre>ii9 : continue

     34
o9 = --
     11

o9 : QQ</pre>
</td></tr>
</table>
</div>
</div>
<div class="waystouse"><h2>For the programmer</h2>
<p>The object <a href="_current.html" title="the pseudocode that produced an error">current</a> is <a href="_null.html" title="the unique member of the empty class">null</a>.</p>
</div>
</div>
</body>
</html>