next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
Bertini :: makeB'InputFile

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 B’Configs option. The user should specify variable groups with the AffVariableGroup (affine variable group) option or HomVariableGroup (homogenous 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()

o2 = /var/folders/j_/gx42s4z576z_vj47_ym0j5xm0000gn/T/M2-74651-0/1
i3 : makeDirectory theDir
i4 : makeB'InputFile(theDir,
         B'Configs=>{{"MPTYPE",2}},
         AffVariableGroup=>{{x1,x2},{y}},
         B'Polynomials=>{y*(x1+x2+1)^2+1,x1-x2+1,y-2})

o4 = /var/folders/j_/gx42s4z576z_vj47_ym0j5xm0000gn/T/M2-74651-0/1/input

o4 : File
i5 : R=QQ[x1,x2,y,X]

o5 = R

o5 : PolynomialRing
i6 : makeB'InputFile(theDir,
         B'Configs=>{{"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}})

o6 = /var/folders/j_/gx42s4z576z_vj47_ym0j5xm0000gn/T/M2-74651-0/1/input

o6 : File
i7 : R=QQ[x1,x2,y,X]

o7 = R

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

o8 = /var/folders/j_/gx42s4z576z_vj47_ym0j5xm0000gn/T/M2-74651-0/1/input

o8 : File

Caveat

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 :