<?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>getSolution(ZZ) -- get various attributes of the specified solution</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_good__Initial__Pair.html">next</a> | <a href="___Bertini.html">previous</a> | <a href="_good__Initial__Pair.html">forward</a> | <a href="___Bertini.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>getSolution(ZZ) -- get various attributes of the specified solution</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>s = getSolution i, s = getSolution(i,SolutionAttributes=>...)</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_get__Solution_lp__Z__Z_rp.html" title="get various attributes of the specified solution">getSolution</a></span></li> <li><div class="single">Inputs:<ul><li><span><span>an <a href="../../Macaulay2Doc/html/___Z__Z.html">integer</a></span>, i, the number of the solution</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><tt>s</tt>, (an) attributes of the solution</span></li> </ul> </div> </li> <li><div class="single"><a href="../../Macaulay2Doc/html/_using_spfunctions_spwith_spoptional_spinputs.html">Optional inputs</a>:<ul><li><span><a href="_get__Solution_lp__Z__Z_rp.html">SolutionAttributes => ...</a>, -- get various attributes of the specified solution</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>Returns attribute(s) of the <tt>i</tt>-th solution specified in the option<a href="_get__Solution_lp__Z__Z_rp.html" title="get various attributes of the specified solution">SolutionAttributes</a>, which could be either a sequence or a single attribute.<br/>SolutionAttributes include:<ul><li>Coordinates -- the list of coordinates</li> <li>SolutionStatus -- REGULAR, SINGULAR, FAILED, etc.</li> <li>NumberOfSteps -- number of steps taken on the corresponding homotopy path</li> <li>LastT -- the last value of the continuation parameter</li> <li>RCondintion-- the reverse condition number at the last step of Newton's method</li> </ul> <table class="examples"><tr><td><pre>i1 : R = CC[x,y];</pre> </td></tr> <tr><td><pre>i2 : S = {x^2-1,y^2-1};</pre> </td></tr> <tr><td><pre>i3 : T = {x^2+y^2-1, x*y};</pre> </td></tr> <tr><td><pre>i4 : track(S,T,{(1,1),(1,-1)}) o4 = {{{1, 1.17962e-15}}, {{-3.8337e-16, -1}}} o4 : List</pre> </td></tr> <tr><td><pre>i5 : getSolution 0 o5 = ({1, 1.17962e-15}, REGULAR, 1, .5, 11) o5 : Sequence</pre> </td></tr> <tr><td><pre>i6 : getSolution(0, SolutionAttributes=>LastT) o6 = 1 o6 : RR (of precision 53)</pre> </td></tr> <tr><td><pre>i7 : getSolution(1, SolutionAttributes=>(Coordinates, SolutionStatus, RCondition)) o7 = ({-3.8337e-16, -1}, REGULAR, .5) o7 : Sequence</pre> </td></tr> </table> </div> </div> <div class="single"><h2>Caveat</h2> <div>Requires a preceding run of <a href="_track_lp__List_cm__List_cm__List_rp.html" title="track a user homotopy">track</a> or <a href="_solve__System_lp__List_rp.html" title="solve a square system of polynomial equations">solveSystem</a> with the (default) option <tt>Software=>M2engine</tt></div> </div> </div> </body> </html>