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

importMainDataFile -- This function imports points from the main data file form a Bertini run.

Synopsis

Description

This function does not import a list of coordinates. Instead it imports points from a maindata file. These points contain coordinates, condition numbers, and etc. The information the points contain depend on if regeneration was used and if a TrackType 0 or 1 was used. When TrackType 1 is used, UNCLASSIFIED points will have component number -1.

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-74754-0/0/input

o1 : File
i2 : runBertini(storeBM2Files)
~/bertini
i3 : thePoints=importMainDataFile(storeBM2Files)

o3 = {{-.0735393-.0286283*ii, 2.32771e-17+1.11367e-17*ii,
     ------------------------------------------------------------------------
     .743429+.673454*ii}, {.729768-.309911*ii, .798998-.285555*ii,
     ------------------------------------------------------------------------
     .676496+.67158*ii}, {-.767913+.352198*ii, -.689766+.384089*ii,
     ------------------------------------------------------------------------
     .80515+.664956*ii}}

o3 : List
i4 : witnessPointsDim1= importMainDataFile(storeBM2Files,SpecifyDim=>1)--We can choose which dimension we import points from. There are no witness points in dimension 1.
1
1
1

o4 = {}

o4 : List
i5 : sortMainDataComponents(thePoints)

o5 = {{{-.0735393-.0286283*ii, 2.32771e-17+1.11367e-17*ii,
     ------------------------------------------------------------------------
     .743429+.673454*ii}}, {{.729768-.309911*ii, .798998-.285555*ii,
     ------------------------------------------------------------------------
     .676496+.67158*ii}, {-.767913+.352198*ii, -.689766+.384089*ii,
     ------------------------------------------------------------------------
     .80515+.664956*ii}}}

o5 : List

Ways to use importMainDataFile :