Macaulay2 » Documentation
Packages » Bertini :: makeB'InputFile
next | previous | forward | backward | up | index | toc

makeB'InputFile -- write a Bertini input file in a directory

Synopsis

Description

This function writes a Bertini input file. The user can specify CONFIGS for the file using the BertiniInputConfiguration option. The user should specify variable groups with the AffVariableGroup (affine variable group) option or HomVariableGroup (homogeneous variable group) option. The user should specify the polynomial system they want to solve with the B'Polynomials option or B'Functions option. If B'Polynomials is not used then the user should use the NamePolynomials option.

i1 : R=QQ[x1,x2,y]

o1 = R

o1 : PolynomialRing
i2 : theDir = temporaryFileName();
i3 : makeDirectory theDir
i4 : makeB'InputFile(theDir,
             BertiniInputConfiguration=>{MPType=>2},
         AffVariableGroup=>{{x1,x2},{y}},
             B'Polynomials=>{y*(x1+x2+1)^2+1,x1-x2+1,y-2});
i5 : R=QQ[x1,x2,y,X]

o5 = R

o5 : PolynomialRing
i6 : makeB'InputFile(theDir,
             BertiniInputConfiguration=>{MPType=>2},
         AffVariableGroup=>{{x1,x2},{y}},
             NamePolynomials=>{f1,f2,f3},
             B'Functions=>{
            {X,x1+x2+1},
            {f1,y*X^2+1},
            {f2,x1-x2+1},
            {f3,y-2}});
i7 : R=QQ[x1,x2,y,X]

o7 = R

o7 : PolynomialRing
i8 : makeB'InputFile(theDir,
              BertiniInputConfiguration=>{MPype=>2},
          AffVariableGroup=>{{x1,x2},{y}},
               B'Polynomials=>{y*X^2+1,x1-x2+1,y-2},
                B'Functions=>{
                   {X,x1+x2+1}});

Variables must begin with a letter (lowercase or capital) and can only contain letters, numbers, underscores, and square brackets. "jade" should not be used in any expression. "I" can only be used to represent the complex number sqrt(-1).

Ways to use makeB'InputFile:

For the programmer

The object makeB'InputFile is a method function with options.