next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Bertini :: Bertini input file declarations: random numbers

Bertini input file declarations: random numbers -- an option which designates symbols/strings/variables that will be set to be a random real number or random complex number

This option should be set to a list of symbols, strings, or variables. Elements of this list will be fixed to random real/complex numbers when Bertini is called.

i1 : R=QQ[x,y,c1,c2]

o1 = R

o1 : PolynomialRing
i2 : makeB'InputFile(storeBM2Files,
              AffVariableGroup=>{{x,y}},
              RandomReal=>{c1,c2},--c1=.1212, c2=.4132 may be written to the input file.
              B'Polynomials=>{x-c1,y-c2});
i3 : R=QQ[x,y,c1,c2]

o3 = R

o3 : PolynomialRing
i4 : makeB'InputFile(storeBM2Files,
              AffVariableGroup=>{{x,y}},
              RandomComplex=>{c1,c2},--c1=.1212+ii*.1344, c2=.4132-ii*.2144 are written to the input file.
              B'Polynomials=>{x-c1,y-c2});

AFTER Bertini is run, the random values are stored in a file named "random_values".