<?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>randomInitialPair -- a random initial pair</title> <link rel="stylesheet" type="text/css" href="../../../../Macaulay2/Style/doc.css"/> </head> <body> <table class="buttons"> <tr> <td><div><a href="_random__Sd.html">next</a> | <a href="___P__H__Cpack.html">previous</a> | <a href="_random__Sd.html">forward</a> | <a href="___P__H__Cpack.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>randomInitialPair -- a random initial pair</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,sol) =randomInitialPair T</tt></div> </dd></dl> </div> </li> <li><div class="single">Inputs:<ul><li><span><tt>T</tt>, list of polynomials</span></li> </ul> </div> </li> <li><div class="single">Outputs:<ul><li><span><tt>S</tt>, list of polynomials</span></li> <li><span><tt>sol</tt>, a list containing (one) solution of S</span></li> </ul> </div> </li> </ul> </div> <div class="single"><h2>Description</h2> <div>Generates a start system S that has and equal chance of reaching any of the solutions of the target system T. <table class="examples"><tr><td><pre>i1 : T = randomSd {2,3};</pre> </td></tr> <tr><td><pre>i2 : (S,solsS) = randomInitialPair T 2 o2 = ({(- .0681066 - .0966079*ii)x1 + (.134052 - .494713*ii)x1*x2 + (- ------------------------------------------------------------------------ 2 .0750381 - .00830672*ii)x2 + (.192941 + .0888703*ii)x1*x3 + (.26097 + ------------------------------------------------------------------------ 2 .464787*ii)x2*x3 + (- .172377 - .0369359*ii)x3 , (- .07119 - ------------------------------------------------------------------------ 3 2 .0625455*ii)x1 + (- .644731 - .0709334*ii)x1 x2 + (- .23262 + ------------------------------------------------------------------------ 2 3 .0503516*ii)x1*x2 + (- .110523 - .227364*ii)x2 + (- .330197 - ------------------------------------------------------------------------ 2 .573774*ii)x1 x3 + (- .626102 + .262181*ii)x1*x2*x3 + (.460949 - ------------------------------------------------------------------------ 2 2 .440825*ii)x2 x3 + (.226273 - .143467*ii)x1*x3 + (.219083 - ------------------------------------------------------------------------ 2 3 .0087443*ii)x2*x3 + (- .0244291 - .0165681*ii)x3 }, ------------------------------------------------------------------------ {{.207643-.339001*ii, .230882-.24103*ii, .850686-.083029*ii}}) o2 : Sequence</pre> </td></tr> <tr><td><pre>i3 : M = track(S,T,solsS,gamma=>0.6+0.8*ii,Software=>M2) o3 = {{{.714784-.165751*ii, .56242-.198353*ii, .289661-.14848*ii}, #steps => ------------------------------------------------------------------------ 12, status => REGULAR, last t => 1, cond#^{-1} => .528924}} o3 : List</pre> </td></tr> </table> </div> </div> <div class="waystouse"><h2>Ways to use <tt>randomInitialPair</tt> :</h2> <ul><li>randomInitialPair(List)</li> </ul> </div> </div> </body> </html>