Macaulay2 » Documentation
Packages » Bertini :: importMainDataFile
next | previous | forward | backward | up | index | toc

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 main_data 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"});
i2 : runBertini(storeBM2Files)
i3 : thePoints=importMainDataFile(storeBM2Files)

o3 = {{-.000273915+.00135179*ii, 1.18473e-19-4.21857e-19*ii,
     ------------------------------------------------------------------------
     -.30482-.952411*ii}, {1.00571-.66748*ii, 1.16282+.327399*ii,
     ------------------------------------------------------------------------
     -.305582-.950929*ii}, {-1.00966+.668745*ii, -1.16395-.330919*ii,
     ------------------------------------------------------------------------
     -.304054-.953894*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 = {{{-.000273915+.00135179*ii, 1.18473e-19-4.21857e-19*ii,
     ------------------------------------------------------------------------
     -.30482-.952411*ii}}, {{1.00571-.66748*ii, 1.16282+.327399*ii,
     ------------------------------------------------------------------------
     -.305582-.950929*ii}, {-1.00966+.668745*ii, -1.16395-.330919*ii,
     ------------------------------------------------------------------------
     -.304054-.953894*ii}}}

o5 : List

Ways to use importMainDataFile :

For the programmer

The object importMainDataFile is a method function with options.