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

Quelle  11.tst   Sprache: unbekannt

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

# CddInterface, 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( "cddinterface11.tst");

# doc/_Chunks.xml:429-484
gap> poly:= Cdd_PolyhedronByInequalities( [ [ 13457 ], [ 1351234 ],
> [ 930213 ]  ], [ 1 ] );
<Polyhedron given by its H-representation>
gap> Cdd_InteriorPoint( poly );
[ -194/7546/25, -3/250 ]
gap> 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 ] ] ]
gap> Cdd_Dimension( poly );
3
gap> Cdd_IsPointed( poly );
false
gap> Cdd_IsEmpty( poly );
false
gap> Cdd_Faces( poly );
[ [ 3, [ 1 ] ], [ 2, [ 12 ] ], [ 1, [ 123 ] ], [ 2, [ 13  ] ] ]
gap> poly1 := Cdd_ExtendLinearity( poly, [ 123 ] );
<Polyhedron given by its H-representation>
gap> 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
gap> Cdd_Dimension( poly1 );
1
gap> Cdd_Facets( poly );
[ [ 12 ], [ 13 ] ]
gap> Cdd_GeneratingVertices( poly );
[ [ -209/7556/25, -8/250 ] ]
gap> Cdd_GeneratingRays( poly );
[ [ -97369, -34275 ], [ -8, -9120 ],
23, -2130 ], [ 97, -369342, -75 ] ]
gap> Cdd_Inequalities( poly );
[ [ 1351234 ], [ 930213 ] ]
gap> Cdd_Equalities( poly );
[ [ 13457 ] ]
gap> P := Cdd_FourierProjection( poly, 2);
<Polyhedron given by its H-representation>
gap> 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

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

[Dauer der Verarbeitung: 0.12 Sekunden, vorverarbeitet 2026-06-25]