<?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>exportNumInvs -- makes the numerical invariants availabe to Macaulay 2</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_export__Num__Invs_lp..._cm_sp__Print_sp_eq_gt_sp..._rp.html">next</a> | <a href="_ehrhart__Ring.html">previous</a> | <a href="_export__Num__Invs_lp..._cm_sp__Print_sp_eq_gt_sp..._rp.html">forward</a> | <a href="_ehrhart__Ring.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>exportNumInvs -- makes the numerical invariants availabe to Macaulay 2</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>exportNumInvs()</tt></div> </dd></dl> </div> </li> <li><div class="single"><a href="../../Macaulay2Doc/html/_using_spfunctions_spwith_spoptional_spinputs.html">Optional inputs</a>:<ul><li><span><a href="_export__Num__Invs_lp..._cm_sp__Print_sp_eq_gt_sp..._rp.html">Print => ...</a>, -- wether to print the variables</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>This function exports the data read by <a href="_get__Num__Invs.html" title="returns the numerical invariants computed">getNumInvs</a> into numerical <tt>Macaulay 2</tt> data that can be accessed directly. For each invariant a variable of type <a href="../../Macaulay2Doc/html/___Z__Z.html" title="the class of all integers">ZZ</a> or <a href="../../Macaulay2Doc/html/___Sequence.html" title="the class of all sequences -- (...)">Sequence</a> is created whose name is the first entry of each list element shown above, prefixed by <tt>nmz</tt>. The variables created and their values are printed to the standard output.<table class="examples"><tr><td><pre>i1 : R=ZZ/37[x,y,t];</pre> </td></tr> <tr><td><pre>i2 : I=ideal(x^3,x^2*y,y^3); o2 : Ideal of R</pre> </td></tr> <tr><td><pre>i3 : setNmzOption("hilb",true);</pre> </td></tr> <tr><td><pre>i4 : intclMonIdeal(I);</pre> </td></tr> <tr><td><pre>i5 : exportNumInvs()</pre> </td></tr> <tr><td><pre>i6 : nmzHilbertBasisElements o6 = 6</pre> </td></tr> <tr><td><pre>i7 : nmzHomogeneousWeights o7 = (1, 1, -2) o7 : Sequence</pre> </td></tr> </table> Note: This function is available even if no filename has been specified.</div> </div> <div class="single"><h2>See also</h2> <ul><li><span><a href="_get__Num__Invs.html" title="returns the numerical invariants computed">getNumInvs</a> -- returns the numerical invariants computed</span></li> <li><span><a href="_show__Num__Invs.html" title="prints the numerical invariants computed">showNumInvs</a> -- prints the numerical invariants computed</span></li> </ul> </div> </div> </body> </html>