Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/nconvex/tst/   (GAP Algebra Version 4.15.1©)  Datei vom 28.11.2024 mit Größe 2 kB image not shown  

Quelle  nconvex02.tst   Sprache: unbekannt

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

# NConvex, single 2
#
# 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("nconvex02.tst");

# doc/_Chunks.xml:138-198
gap> F1 := Fan( [ [ [ 21 ], [ 12 ] ], [ [ 21 ], [ 1, -1 ] ],
>              [ [ -31 ], [ -1, -3 ] ] ] );
<A fan in |R^2>             
gap> F2 := Fan( [ [ 21 ], [ 12 ], [ -31 ], [ -1, -3 ], [ 1, -1 ] ], 
>         [ [ 12 ], [ 15 ], [ 34 ] ] );
<A fan in |R^2>
gap> rays1 := RayGenerators( F1 );
[ [ -31 ], [ -1, -3 ], [ 1, -1 ], [ 12 ], [ 21 ] ]
gap> rays2 := RayGenerators( F2 );
[ [ -31 ], [ -1, -3 ], [ 1, -1 ], [ 12 ], [ 21 ] ]
gap> RaysInMaximalCones( F1 );
[ [ 00011 ], [ 00101 ], [ 11000 ] ]
gap> RaysInMaximalCones( F2 );
[ [ 00011 ], [ 00101 ], [ 11000 ] ]
gap> RaysInAllCones( F1 );
[ [ 00000 ], [ 00011 ], [ 00001 ], 
 [ 00010 ], [ 00101 ], [ 00100 ], 
 [ 11000 ], [ 01000 ], [ 10000 ] ]
gap> FVector( F1 );
53 ]
gap> IsComplete( F1 );
false
gap> IsSimplicial( F1 );
true
gap> IsNormalFan( F1 );
false
gap> IsRegularFan( F1 );
false
gap> P1 := Polytope( [ [ 1 ], [ -1 ] ] );
<A polytope in |R^1>
gap> P1 := NormalFan( P1 );
<A complete fan in |R^1>
gap> RayGenerators( P1 );
[ [ -1 ], [ 1 ] ]
gap> P3 := P1 * P1 * P1;
<A fan in |R^3>
gap> RayGenerators( P3 );
[ [ -100 ], [ 0, -10 ], [ 00, -1 ], [ 001 ], [ 010 ], 
  [ 100 ] ]
gap> RaysInMaximalCones( P3 );
[ [ 000111 ], [ 001011 ], [ 010101 ], 
  [ 011001 ], [ 100110 ], [ 101010 ], 
  [ 110100 ], [ 111000 ] ]
gap> RaysInAllCones( P3 );
[ [ 000000 ], [ 000111 ], [ 000110 ], 
  [ 000100 ], [ 000010 ], [ 000101 ], 
  [ 000001 ], [ 000011 ], [ 001011 ], 
  [ 001010 ], [ 001000 ], [ 001001 ], 
  [ 010101 ], [ 010100 ], [ 010000 ], 
  [ 010001 ], [ 011001 ], [ 011000 ], 
  [ 100110 ], [ 100100 ], [ 100000 ], 
  [ 100010 ], [ 101010 ], [ 101000 ], 
  [ 110100 ], [ 110000 ], [ 111000 ] ]
gap> IsNormalFan( P3 );
true
gap> Dimension( P3 );
3
gap> PrimitiveCollections( P3 );
[ [ 43 ], [ 52 ], [ 61 ] ]

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

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