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

readFile -- Read the first lines of a file.

Synopsis

Description

Read the first characters of a file. When fileName is omitted "bertinisession.log" is read.

i1 : makeB'InputFile(storeBM2Files,AffVariableGroup=>{x,y},B'Polynomials=>{"x^2+2","y^2+3"})

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

o1 : File
i2 : runBertini(storeBM2Files)
~/bertini
i3 : readFile(storeBM2Files,"nonsingular_solutions",1)

o3 = 4
i4 : readFile(storeBM2Files,10000)

o4 = 
        Bertini(TM) v1.5
       (February 11, 2015)

      D.J. Bates, J.D. Hauenstein,
      A.J. Sommese, C.W. Wampler

     (using GMP v4.2.3, MPFR v2.3.1)



     NOTE: You have requested to use adaptive path tracking.  Please make sure that you have
     setup the following tolerances appropriately:
     CoeffBound: 5.567633000000e+00, DegreeBound: 2.000000000000e+00
     AMPSafetyDigits1: 1, AMPSafetyDigits2: 1, AMPMaxPrec: 1024

     Tracking path 0 of 4

     Finite Solution Summary

     NOTE: nonsingular vs singular is based on condition number and identical endpoints

                     | Number of real solns  |  Number of non-real solns     |  Total
     ------------------------------------------------------------------------------------------
     Non-singular    |       0               |               4               |   4
     Singular        |       0               |               0               |   0
     ------------------------------------------------------------------------------------------
     Total           |       0               |               4               |   4


     Finite Multiplicity Summary

       Multiplicity  |  Number of real solns |  Number of non-real solns
     ------------------------------------------------------------------------------------------
             1       |       0               |       4


     ------------------------------------------------------------------------------------------
     The following files may be of interest to you:

     main_data:             A human-readable version of the solutions - main output file.
     raw_solutions:         A list of the solutions with the corresponding path numbers.
     raw_data:              Similar to the previous, but with the points in Bertini's homogeneous
                              coordinates along with more information about the solutions.
     real_finite_solutions: A list of all real finite solutions.
     finite_solutions:      A list of all finite solutions.
     nonsingular_solutions: A list of all nonsingular solutions.
     singular_solutions:    A list of all singular solutions.
     ------------------------------------------------------------------------------------------

     Paths Tracked: 4
i5 : readFile(storeBM2Files)

o5 = 
        Bertini(TM) v1.5
       (February 11, 2015)

      D.J. Bates, J.D. Hauenstein,
      A.J. Sommese, C.W. Wampler

     (using GMP v4.2.3, MPFR v2.3.1)



     NOTE: You have requested to use adaptive path tracking.  Please make sure that you have
     setup the following tolerances appropriately:
     CoeffBound: 5.567633000000e+00, DegreeBound: 2.000000000000e+00
     AMPSafetyDigits1: 1, AMPSafetyDigits2: 1, AMPMaxPrec: 1024

     Tracking path 0 of 4

     Finite Solution Summary

     NOTE: nonsingular vs singular is based on condition number and identical endpoints

                     | Number of real solns  |  Number of non-real solns     |  Total
     ------------------------------------------------------------------------------------------
     Non-singular    |       0               |               4               |   4
     Singular        |       0               |               0               |   0
     ------------------------------------------------------------------------------------------
     Total           |       0               |               4               |   4


     Finite Multiplicity Summary

       Multiplicity  |  Number of real solns |  Number of non-real solns
     ------------------------------------------------------------------------------------------
             1       |       0               |       4


     ------------------------------------------------------------------------------------------
     The following files may be of interest to you:

     main_data:             A human-readable version of the solutions - main output file.
     raw_solutions:         A list of the solutions with the corresponding path numbers.
     raw_data:              Similar to the previous, but with the points in Bertini's homogeneous
                              coordinates along with more information about the solutions.
     real_finite_solutions: A list of all real finite solutions.
     finite_solutions:      A list of all finite solutions.
     nonsingular_solutions: A list of all nonsingular solutions.
     singular_solutions:    A list of all singular solutions.
     ------------------------------------------------------------------------------------------

     Paths Tracked: 4

Ways to use readFile :