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

makeSampleSolutionsFile -- This function samples points from a component by performing a Bertini TrackType 2.

Synopsis

Description

This function does a track type 2 Bertini run creating "samplesolutionsfile" that contains a list of witness points in the standard Bertini format.

i1 : makeB'InputFile(storeBM2Files,
       AffVariableGroup=>{x,y,z},
       B'Configs=>{{TrackType,1}},
       B'Polynomials=>{"(x^2+y^2+z^2-1)*y"})

o1 = /var/folders/j_/gx42s4z576z_vj47_ym0j5xm0000gn/T/M2-74737-0/0/input

o1 : File
i2 : runBertini(storeBM2Files)
~/bertini
i3 : makeSampleSolutionsFile(storeBM2Files,4,SpecifyComponent=>{2,0})--creates a witness point file with 4 sample points for the 0th component in dimension 2.
~/bertini
i4 : theSols=importSolutionsFile(storeBM2Files,NameSolutionsFile=>"sample_solutions_file")

o4 = {{.025137+.51755*ii, 3.07889e-20-1.64943e-20*ii, -.680383+1.49829*ii},
     ------------------------------------------------------------------------
     {-.977715-.479647*ii, -2.97048e-20+6.8636e-21*ii, -.307964+1.28775*ii},
     ------------------------------------------------------------------------
     {-.46505-.37277*ii, 4.8851e-21-5.46669e-20*ii, .556711+.57644*ii},
     ------------------------------------------------------------------------
     {-.831929-.394761*ii, -2.8581e-22+3.70569e-20*ii, -.264254+1.35965*ii}}

o4 : List

Ways to use makeSampleSolutionsFile :