4 This file along with Zpolyhedron.c, polyhedron.c, Lattice.c,
5 Matop.c SolveDio.c, matrix.c and vector.c does the following :
7 - Intersection of two Z-Domains.
8 - Difference of two Z-domains.
9 - Image of a Z-domain by a invertible,
10 affine rational function.
13 #include <polylib/polylib.h>
19 ZPolyhedron
*Z1
, *Z2
, *Z3
, *Z4
;
23 P
= Constraints2Polyhedron (b
, 200);
24 Z1
= ZPolyhedron_Alloc (a
, P
);
32 P
= Constraints2Polyhedron (b
, 200);
33 Z2
= ZPolyhedron_Alloc (a
, P
);
39 Z3
= ZDomainIntersection (Z1
, Z2
);
40 printf ("\nZ3 = Z1 and Z2");
41 ZDomainPrint(stdout
,P_VALUE_FMT
, Z3
);
44 Z4
= ZDomainImage (Z1
, a
);
45 printf ("\nZ4 = image (Z1 by a)");
46 ZDomainPrint (stdout
,P_VALUE_FMT
, Z4
);