#### 4.22.3.9 convexHull

`Syntax:`
  `convexHull(` cone c1, cone c2 `)`
  `convexHull(` cone c1, polytope p1 `)`
  `convexHull(` polytope p1, cone c1 `)`
  `convexHull(` polytope p1, polytope p2 `)`
`Type:`
  cone if both input arguments are cones, else polytope
`Purpose:`
  the hull of the two objects
`Example:`

      LIB"gfanlib.so";
      intmat M1[2][2]=
      1,0,
      0,1;
      cone c1=coneViaPoints(M1);
      intmat M2[2][2]=
      1,1,
      1,-1;
      cone c2=coneViaPoints(M2);
      intmat M3[2][2]=
      1,0,
      0,-1;
      cone c3=coneViaPoints(M3);
      cone c12=convexHull(c1,c2);
      c12;
      ==> AMBIENT_DIM
      ==> 2
      ==> FACETS
      ==> 1,0,
      ==> 1,1
      ==> LINEAR_SPAN
      ==>
      ==>
      print(rays(c12));
      ==> 1,-1,
      ==> 0, 1
      cone c23=convexHull(c2,c3);
      c23;
      ==> AMBIENT_DIM
      ==> 2
      ==> FACETS
      ==> 1,-1,
      ==> 1, 0
      ==> LINEAR_SPAN
      ==>
      ==>
      print(rays(c23));
      ==> 0,-1,
      ==> 1, 1
      cone c13=convexHull(c1,c3);
      c13;
      ==> AMBIENT_DIM
      ==> 2
      ==> FACETS
      ==> 1,0
      ==> LINEAR_SPAN
      ==>
      ==>
      print(rays(c13));
      ==> 1,0

User manual for Singular version 4-0-3, 2016, generated by texi2html.