Top
Back: gaussColWithoutPerm
Forward: writeBertiniInput
FastBack:
FastForward:
Up: recover_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.8.7.7 getWitnessSet

Procedure from library recover.lib (see recover_lib).

Usage:
getWitnessSet();

Assume:
There is a text-document "main_data" in the current directory which was produced by Bertini.
The basefield is the field of real numbers or the field of complex numbers.

Return:
list; a list P of lists p_i of numbers: P a set of witness points

Note:
Reads the file "main_data", searches the strings containing the witness points, and converts them into floating point numbers.

Example:
 
LIB "recover.lib";
//First, we write the input file for bertini, then run bertini
ring r=0,(x,y,z),dp;
ideal I=(x-y)*(y-z)*(x-z);
writeBertiniInput(I,40);
system("sh","bertini input");
==> 
==>    Bertini(TM) v1.6
==>     (May 22, 2018)
==> 
==>  D.J. Bates, J.D. Hauenstein,
==>  A.J. Sommese, C.W. Wampler
==> 
==> (using GMP v6.0.0, MPFR v3.1.2)
==> 
==> 
==> 
==> NOTE: You have requested to use adaptive path tracking.  Please make sure\
    that you have
==> setup the following tolerances appropriately:
==> CoeffBound: 6.000000000000e+00, DegreeBound: 3.000000000000e+00
==> AMPSafetyDigits1: 1, AMPSafetyDigits2: 1, AMPMaxPrec: 160
==> 
==> 
==> Tracking regeneration codim 1 of 1: 3 paths to track.
==> Tracking path 0 of 3
==> Tracking path 1 of 3
==> Tracking path 2 of 3
==> 
==> Sorting codimension 1 of 1: 3 paths to sort.
==> Sorting 0 of 3
==> Sorting 1 of 3
==> Sorting 2 of 3
==> 
==> 
==> ************ Regenerative Cascade Summary ************
==> 
==> NOTE: nonsingular vs singular is based on rank deficiency and identical e\
   ndpoints
==> 
==> |codim|   paths   |witness superset| nonsingular | singular |nonsolutions\
   | inf endpoints | other bad endpoints
==> ----------------------------------------------------------------------------------------------------------------
==> | 1   |   3       |   3            |  3          |  0       |  0         \
   |   0           |  0
==> ----------------------------------------------------------------------------------------------------------------
==> |total|   3
==> 
==> ****************************************************
==> 
==> 
==> 
==> *************** Witness Set Summary ****************
==> 
==> NOTE: nonsingular vs singular is based on rank deficiency and identical e\
   ndpoints
==> 
==> |codim| witness points | nonsingular | singular 
==> -------------------------------------------------
==> | 1   |   3            |  3          |  0       
==> -------------------------------------------------
==> 
==> ****************************************************
==> 
==> 
==> Calculating traces for codimension 1.
==> Calculating 0 of 3
==> Calculating 1 of 3
==> Calculating 2 of 3
==> 
==> Using combinatorial trace test to decompose codimension 1.
==> 
==> 
==> ************* Witness Set Decomposition *************
==> 
==> | dimension | components | classified | unclassified
==> -----------------------------------------------------
==> |   1       |   0        |   0        |  3
==> -----------------------------------------------------
==> 
==> ************** Decomposition by Degree **************
==> 
==> *****************************************************
==> 
==> 0
//Then we change the ring and extract the witness set from main_data
ring R=(complex,40,i),(x,y,z),dp;
list P=getWitnessSet();
P;
==> [1]:
==>    [1]:
==> (-0.07358858260446777417237504852232337310322-i*0.45015673169492637829802\
   93170257067767359)
==>    [2]:
==> (-0.07358858260446777417237504852232337310322-i*0.45015673169492637829802\
   93170257067767359)
==>    [3]:
==> (-0.3179213859605605789394572793701895109019-i*0.295292802050284094524320\
   972367766778014)
==> [2]:
==>    [1]:
==> (-0.2096369513024515260209021154636855619935-i*0.309682700686447550518854\
   5654221135679038)
==>    [2]:
==> (0.009879012036854144120106597825830856961517-i*0.40108955429302853973860\
   82274301070611329)
==>    [3]:
==> (-0.2096369513024515260209021154636855619935-i*0.309682700686447550518854\
   5654221135679038)
==> [3]:
==>    [1]:
==> (-0.8920907202330855804312039551931068694899-i*0.311071884220570141656945\
   4175325203201043)
==>    [2]:
==> (0.08885493694602801518326349309481325482178-i*0.072558614090003924808078\
   9259339686145632)
==>    [3]:
==> (0.08885493694602801518326349309481325482178-i*0.072558614090003924808078\
   9259339686145632)


Top Back: gaussColWithoutPerm Forward: writeBertiniInput FastBack: FastForward: Up: recover_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4.3.1, 2022, generated by texi2html.