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

RandomReal -- An option which designates symbols/strings/variables that will be set to be a random real number or random complex number.

Description

This option should be set to a list of symbols, strings, or variables. Elemenets of this list will be set 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})

o2 = /var/folders/j_/gx42s4z576z_vj47_ym0j5xm0000gn/T/M2-74752-0/0/input

o2 : File
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})

o4 = /var/folders/j_/gx42s4z576z_vj47_ym0j5xm0000gn/T/M2-74752-0/0/input

o4 : File

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

Functions with optional argument named RandomReal :

For the programmer

The object RandomReal is a symbol.