next | previous | forward | backward | up | top | index | toc | Macaulay2 web site

randomInitialPair -- a random initial pair

Synopsis

Description

Generates a start system S that has and equal chance of reaching any of the solutions of the target system T.
i1 : T = randomSd {2,3};
i2 : (S,solsS) = randomInitialPair T

                                  2                                          
o2 = ({(.0169344 - .00323577*ii)x1  + (.33485 - .012726*ii)x1*x2 + (.120725 -
     ------------------------------------------------------------------------
                   2                                             
     .0292872*ii)x2  + (.066515 + .0785393*ii)x1*x3 + (- .60772 -
     ------------------------------------------------------------------------
                                                2               
     .458823*ii)x2*x3 + (.153617 + .079918*ii)x3 , (- .0376088 -
     ------------------------------------------------------------------------
                   3                           2                 
     .0807679*ii)x1  + (.245322 + .382195*ii)x1 x2 + (- .372206 +
     ------------------------------------------------------------------------
                     2                           3             
     .416782*ii)x1*x2  + (.243935 - .123291*ii)x2  + (.423315 +
     ------------------------------------------------------------------------
                   2                                                  
     .0612359*ii)x1 x3 + (- .173519 + .337642*ii)x1*x2*x3 + (.377599 -
     ------------------------------------------------------------------------
                  2                                 2             
     .101452*ii)x2 x3 + (.0263399 - .196892*ii)x1*x3  + (.625077 +
     ------------------------------------------------------------------------
                     2                             3
     .179761*ii)x2*x3  + (- .245159 + .019251*ii)x3 }, {{.236507+.0160707*ii,
     ------------------------------------------------------------------------
     .264339-.0591107*ii, .932864+.014201*ii}})

o2 : Sequence
i3 : M = track(S,T,solsS,gamma=>0.6+0.8*ii,Software=>M2)

o3 = {{{-.244241-.343195*ii, .262464+.11445*ii, .834984+.208278*ii}, #steps
     ------------------------------------------------------------------------
     => 11, status  => REGULAR, last t => 1, cond#^{-1} => .446102}}

o3 : List

Ways to use randomInitialPair :