35 int main (
int argc,
char **argv)
37 cout <<
"#########################################################" << endl;
38 cout <<
"# TUTORIAL WITH LIBRARY USE #" << endl;
39 cout <<
"#########################################################" << endl << endl;
42 vector<string> polynomialArray;
45 vector<string> variableName;
46 for(
int i = 0; i < 6; i++)
48 variableName.push_back(
'x'+to_string(i));
52 polynomialArray.emplace_back(
"x0+x1+x2+x3+x4+x5");
53 polynomialArray.emplace_back(
"x0*x1+x1*x2+x2*x3+x3*x4+x0*x5+x4*x5");
54 polynomialArray.emplace_back(
"x0*x1*x2+x1*x2*x3+x2*x3*x4+x0*x1*x5+x0*x4*x5+x3*x4*x5");
55 polynomialArray.emplace_back(
"x0*x1*x2*x3+x1*x2*x3*x4+x0*x1*x2*x5+x0*x1*x4*x5+x0*x3*x4*x5+x2*x3*x4*x5");
56 polynomialArray.emplace_back(
"x0*x1*x2*x3*x4+x0*x1*x2*x3*x5+x0*x1*x2*x4*x5+x0*x1*x3*x4*x5+x0*x2*x3*x4*x5+x1*x2*x3*x4*x5");
57 polynomialArray.emplace_back(
"x0*x1*x2*x3*x4*x5-1");
63 for(
size_t i = 0; i < basis.size(); i++)
65 cout << basis[i] << endl;
std::vector< std::string > groebnerBasisGF2F4(int nbVariable, std::vector< std::string > variableName, std::vector< std::string > polynomialList, int nbThread, int verbose)
Compute a reduced groebner basis of the ideal defined by the list of polynomials polynomialList.
Declaration of library methods.