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

randomInitialPair -- a random initial pair

Synopsis

Description

Generates a start system S that has an 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 = ({(- .0439215 - .0200496*ii)x1  + (.441073 - .536375*ii)x1*x2 + (.212146
     ------------------------------------------------------------------------
                    2                                              
     + .189456*ii)x2  + (.209286 + .218145*ii)x1*x3 + (- .0608735 +
     ------------------------------------------------------------------------
                                                  2            
     .264626*ii)x2*x3 + (- .390033 + .130192*ii)x3 , (.235797 +
     ------------------------------------------------------------------------
                  3                              2              
     .217091*ii)x1  + (- .345756 - .0768373*ii)x1 x2 + (.27709 +
     ------------------------------------------------------------------------
                     2                             3             
     .399795*ii)x1*x2  + (- .12919 + .0368697*ii)x2  + (.365509 -
     ------------------------------------------------------------------------
                  2                                                    
     .150765*ii)x1 x3 + (- .135451 + .231555*ii)x1*x2*x3 + (- .495625 -
     ------------------------------------------------------------------------
                  2                                   2               
     .170292*ii)x2 x3 + (- .0288723 - .269068*ii)x1*x3  + (- .274812 -
     ------------------------------------------------------------------------
                     2                            3
     .208695*ii)x2*x3  + (.0136355 - .194359*ii)x3 }, {{-.406071-.703008*ii,
     ------------------------------------------------------------------------
     .283427-.219257*ii, .174777+.426539*ii}})

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

o3 = {{-.048609-.584636*ii, .355752-.54408*ii, .35621+.326145*ii}}

o3 : List

Ways to use randomInitialPair :