products/Sources/formale Sprachen/GAP/pkg/agt/srglib/   (GAP Algebra Version 4.15.1©)  Datei vom 31.11.2022 mit Größe 458 kB image not shown  

Quelle  nconvex11.tst   Sprache: unbekannt

 
Spracherkennung für: .tst vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

# NConvex, single 11
#
# DO NOT EDIT THIS FILE - EDIT EXAMPLES IN THE SOURCE INSTEAD!
#
# This file has been generated by AutoDoc. It contains examples extracted from
# the package documentation. Each example is preceded by a comment which gives
# the name of a GAPDoc XML file and a line range from which the example were
# taken. Note that the XML file in turn may have been generated by AutoDoc
# from some other input.
#
gap> START_TEST("nconvex11.tst");

# doc/_Chunks.xml:393-474
gap> P:= Polytope( [ [ 000 ], [ 100 ], [ 010 ], [ 112 ] ] );
<A polytope in |R^3>
gap> IsNormalPolytope( P );
false
gap> IsVeryAmple( P );
false
gap> Q:= Polytope( [ [ 000 ], [ 100 ], [ 010 ], [ 111 ] ] );
<A polytope in |R^3>
gap> IsNormalPolytope( Q );
true
gap> IsVeryAmple( Q );
true
gap> Q;
<A normal very ample polytope in |R^3 with 4 vertices>
gap> T:= Polytope( [ [ 000 ], [ 100 ], [ 010 ], [ 114 ] ] ); 
<A polytope in |R^3>
gap> I:= Polytope( [ [ 000 ], [ 001 ] ] );
<A polytope in |R^3>
gap> J:= T + I; 
<A polytope in |R^3>
gap> IsVeryAmple( J );
true
gap> IsNormalPolytope( J );
false
gap> J;
<A very ample polytope in |R^3 with 8 vertices>
gap> # Example 2.2.20 Cox, Toric Varieties
> A:= [ [1,1,1,0,0,0], [1,1,0,1,0,0], [1,0,1,0,1,0], [ 1,0,0,1,0,1], 
> [ 1,0,0,0,1,1], [ 0,1,1,0,0,1], [0,1,0,1,1,0], [0,1,0,0,1,1], 
> [0,0,1,1,1,0], [0,0,1,1,0,1] ];
[ [ 111000 ], [ 110100 ], [ 101010 ],
100101 ], [ 100011 ], [ 011001 ], 
 [ 010110 ], [ 010011 ], [ 001110 ], 
001101 ] ]
gap> H:= Polytope( A );
<A polytope in |R^6>
gap> IsVeryAmple( H );   
true
gap> IsNormalPolytope( H );
false
gap> H;
<A very ample polytope in |R^6 with 10 vertices>
gap> l:= [ [ 001 ], [ 000 ], [ 100 ], [ 101 ], [ 010 ], 
> [ 011 ], [ 114 ], [ 115 ] ];;
gap> P:= Polytope( l );
<A polytope in |R^3>
gap> IsNormalPolytope( P );
false
gap> lattic_points:= LatticePoints( P );
[ [ 000 ], [ 001 ], [ 010 ], [ 011 ], [ 100 ], [ 101 ], 
114 ], [ 115 ] ]
gap> u:= Cartesian( lattic_points, lattic_points );;
gap> k:= Set( List( u, u-> u[1]+u[2] ) );
[ [ 000 ], [ 001 ], [ 002 ], [ 010 ], [ 011 ], [ 012 ],
020 ], [ 021 ], [ 022 ], [ 100 ], [ 101 ], [ 102 ], 
110 ], [ 111 ], [ 112 ], [ 114 ], [ 115 ], [ 116 ], 
124 ], [ 125 ], [ 126 ], [ 200 ], [ 201 ], [ 202 ], 
214 ], [ 215 ], [ 216 ], [ 228 ], [ 229 ], [ 2210 ] ]
gap> Q:= 2*P;
<A polytope in |R^3 with 8 vertices>
gap> LatticePoints( Q );
[ [ 000 ], [ 001 ], [ 002 ], [ 010 ], [ 011 ], [ 012 ],
020 ], [ 021 ], [ 022 ], [ 100 ], 
  [ 101 ], [ 102 ], [ 110 ], [ 111 ], [ 112 ], [ 113 ], 
114 ], [ 115 ], [ 116 ], [ 124 ], [ 125 ], [ 126 ], 
200 ], [ 201 ], [ 202 ], [ 214 ], 
  [ 215 ], [ 216 ], [ 228 ], [ 229 ], [ 2210 ] ]
gap> P:= Polytope( [ [ 11 ], [ 1, -1 ], [ -11 ], [ -1, -1 ] ] );
<A polytope in |R^2>
gap> Q:= PolarPolytope( P );
<A polytope in |R^2>
gap> Vertices( Q );
[ [ -10 ], [ 0, -1 ], [ 01 ], [ 10 ] ]
gap> T := PolarPolytope( Q );
<A polytope in |R^2>
gap> Vertices( T );
[ [ -1, -1 ], [ -11 ], [ 1, -1 ], [ 11 ] ]
gap> P:= Polytope( [ [ 00 ], [ 1, -1], [ -11 ], [ -1, -1 ] ] );
<A polytope in |R^2>
gap> # PolarPolytope( P );;

#
gap> STOP_TEST("nconvex11.tst", 1);

[Dauer der Verarbeitung: 0.41 Sekunden, vorverarbeitet 2026-06-07]