<?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>sortSolutions(List) -- sort the list of solutions</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="___Tolerance.html">next</a> | <a href="_solve__System_lp__List_rp.html">previous</a> | <a href="___Tolerance.html">forward</a> | <a href="_solve__System_lp__List_rp.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>sortSolutions(List) -- sort the list of solutions</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>t = sortSolutions s</tt></div> </dd></dl> </div> </li> <li><span>Function: <a href="_sort__Solutions_lp__List_rp.html" title="sort the list of solutions">sortSolutions</a></span></li> <li><div class="single">Inputs:<ul><li><span><span>a <a href="../../Macaulay2Doc/html/___List.html">list</a></span>, <tt>s</tt>, the list of solutions</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><span>a <a href="../../Macaulay2Doc/html/___List.html">list</a></span>, <tt>t</tt>, sorted list</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="___Tolerance.html">Tolerance => ...</a>, -- specifies the tolerance of a numerical computation</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>The sorting is done lexicographically regarding each complex n-vector as real 2n-vector. The output format of <a href="_track_lp__List_cm__List_cm__List_rp.html" title="track a user homotopy">track</a> and <a href="_solve__System_lp__List_rp.html" title="solve a square system of polynomial equations">solveSystem</a> is respected.<br/>The parts of coordinates are considered equal if within <a href="___Tolerance.html" title="specifies the tolerance of a numerical computation">Tolerance</a><table class="examples"><tr><td><pre>i1 : R = CC[x,y];</pre> </td></tr> <tr><td><pre>i2 : s = solveSystem {x^2+y^2-1, x*y} o2 = {{{-1, 1.20692e-15-3.00952e-16*ii}}, {{-2.7062e-16+3.05582e-16*ii, 1}}, ------------------------------------------------------------------------ {{2.89919e-16-2.8173e-16*ii, -1}}, {{1, -1.23467e-15+2.97482e-16*ii}}} o2 : List</pre> </td></tr> <tr><td><pre>i3 : sortSolutions s o3 = {{{-1, 1.20692e-15-3.00952e-16*ii}}, {{2.89919e-16-2.8173e-16*ii, -1}}, ------------------------------------------------------------------------ {{-2.7062e-16+3.05582e-16*ii, 1}}, {{1, -1.23467e-15+2.97482e-16*ii}}} o3 : List</pre> </td></tr> </table> </div> </div> </div> </body> </html>