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},
       BertiniInputConfiguration=>{{TrackType,1}},
       B'Polynomials=>{"(x^2+y^2+z^2-1)*y"})

o1 = /tmp/M2-26277-0/0/input

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

o3 = {{-.219962+.20422*ii, 1.1526e-18+1.15257e-16*ii, .225537+1.01942*ii},
     ------------------------------------------------------------------------
     {.834556+.109194*ii, -.941079+.377836*ii, .355377+.744126*ii},
     ------------------------------------------------------------------------
     {-1.23932-.03284*ii, 1.00037-.063534*ii, .018469+1.23769*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 = {{{-.219962+.20422*ii, 1.1526e-18+1.15257e-16*ii, .225537+1.01942*ii}},
     ------------------------------------------------------------------------
     {{.834556+.109194*ii, -.941079+.377836*ii, .355377+.744126*ii},
     ------------------------------------------------------------------------
     {-1.23932-.03284*ii, 1.00037-.063534*ii, .018469+1.23769*ii}}}

o5 : List

Ways to use importMainDataFile :