Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/cddinterface/examples/   (GAP Algebra Version 4.15.1©)  Datei vom 24.5.2025 mit Größe 1 kB image not shown  

Quelle  demo.g   Sprache: unbekannt

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



LoadPackage( "CddInterface" );

#! @Chunk demo
#! @Example
poly:= Cdd_PolyhedronByInequalities( [ [ 13457 ], [ 1351234 ],
930213 ]  ], [ 1 ] );
#! <Polyhedron given by its H-representation>
Cdd_InteriorPoint( poly );
#! [ -194/7546/25, -3/250 ]

Cdd_FacesWithInteriorPoints( poly );
#! [ [ 3, [ 1 ], [ -194/7546/25, -3/250 ] ], [ 2, [ 12 ],
#! [ -62/2549/25, -7/250 ] ], [ 1, [ 123 ],
#! [ -209/7556/25, -8/250 ] ], [ 2, [ 13 ], [ -217/7553/25, -4/250 ] ] ]

Cdd_Dimension( poly );
#! 3
Cdd_IsPointed( poly );
#! false
Cdd_IsEmpty( poly );
#! false
Cdd_Faces( poly );
#! [ [ 3, [ 1 ] ], [ 2, [ 12 ] ], [ 1, [ 123 ] ], [ 2, [ 13  ] ] ]
poly1 := Cdd_ExtendLinearity( poly, [ 123 ] );
#! <Polyhedron given by its H-representation>
Display( poly1 );
#! H-representation 
#! linearity 3, [ 123 ]
#! begin
#!    3 X 5  rational
#!
#!    1   3   4   5   7 
#!    1   3   5  12  34 
#!    9   3   0   2  13 
#! end
Cdd_Dimension( poly1 );
#! 1
Cdd_Facets( poly );
#! [ [ 12 ], [ 13 ] ]
Cdd_GeneratingVertices( poly );
#! [ [ -209/7556/25, -8/250 ] ]
Cdd_GeneratingRays( poly );
#! [ [ -97369, -34275 ], [ -8, -9120 ],
#! [ 23, -2130 ], [ 97, -369342, -75 ] ]
Cdd_Inequalities( poly );
#! [ [ 1351234 ], [ 930213 ] ]
Cdd_Equalities( poly );
#! [ [ 13457 ] ]
P := Cdd_FourierProjection( poly, 2);
#! <Polyhedron given by its H-representation>
Display( P );
#! H-representation 
#! linearity 1, [ 3 ]
#! begin 
#!    3 X 5  rational
#!
#!     9    3    0    2   13 
#!    -1   -3    0   23  101 
#!     0    0    1    0    0 
#! end
#! @EndExample
#! @EndChunk


[Dauer der Verarbeitung: 0.10 Sekunden, vorverarbeitet 2026-06-17]