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");
60 vector<string> basis = groebnerBasisGivaroIntegerF4(
"115792089237316195423570985008687907853269984665640564039457584007913129640233", 6, variableName, polynomialArray, 1, 0);
63 for(
size_t i = 0; i < basis.size(); i++)
65 cout << basis[i] << endl;
Declaration of library methods.