| LIB "normaliz.lib";
ring R=0,(x,y,z),dp;
intmat M[3][2]=3,1,
3,2,
1,3;
normaliz(M,"cone");
==> 1,1,
==> 1,2,
==> 1,3,
==> 2,1,
==> 3,1
intmat Inequalities[2][3] = 2,-1,0, // 2x-y >= 0
1, 1,0; // x+y >= 0
intmat Equation[1][3] = 0,1,-1; // y = z
intmat Congruence[1][4] = 1,0,0,3; // x = 0 (3)
normaliz(Inequalities,"inequalities",Equation,"equations",Congruence,"congruences");
==> 3,-3,-3,
==> 3,-2,-2,
==> 3,-1,-1,
==> 3,0,0,
==> 3,1,1,
==> 3,2,2,
==> 3,3,3,
==> 3,4,4,
==> 3,5,5,
==> 3,6,6
|