In creating gfanInterface the objective has been to mirror the gfan commands as closely as possible in Macaulay 2. Many commands in gfan allow command line options and these reproduced in gfanInterface as optional arguments.
For example, say we want to find the Groebner bases of an ideal with symmetry. From the command line, one would type gfan _bases --symmetry and then give the ring, ideal and symmetries of the ideal as input.
In gfanInterface we pass the optional argument "symmetry" the symmetries and provide the ideal as an argument.
|
|
For each optional gfan argument, the corresponding gfanInterface argument is obtained by simply removing the dashes.
Here's another example. If we run gfanBuchberger without a weight vector, it will use the lexicographic order.
|
|
If we want to use a different order, the gfan documentation tells us to use the -w argument. So, in Macaulay 2, we set the w argument to the desired weight vector.
|
|
Many optional arguments to gfan require no additional input. In this case, we set the optional argument in Macaulay 2 to be true.