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

Quelle  normalizinterface02.tst   Sprache: unbekannt

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

# NormalizInterface, chapter 3
#
# 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("normalizinterface02.tst");

# doc/_Chunks.xml:2-15
gap> C := NmzCone(["integral_closure",[[2,1],[1,3]]]);
<a Normaliz cone>
gap> NmzHasConeProperty(C,"HilbertBasis");
false
gap> NmzHasConeProperty(C,"SupportHyperplanes");
false
gap> NmzConeProperty(C,"HilbertBasis");
[ [ 11 ], [ 12 ], [ 13 ], [ 21 ] ]
gap> NmzHasConeProperty(C,"SupportHyperplanes");
true
gap> NmzConeProperty(C,"SupportHyperplanes");
[ [ -12 ], [ 3, -1 ] ]

# doc/_Chunks.xml:21-36
gap> D := NmzCone(["equations",[[1,2,-3]], "grading",[[0,-1,3]]]);
<a Normaliz cone>
gap> NmzCompute(D,["DualMode","HilbertSeries"]);
true
gap> NmzHilbertBasis(D);
[ [ 111 ], [ 032 ], [ 301 ] ]
gap> NmzHilbertSeries(D);
[ t^2-t+1, [ [ 11 ], [ 31 ] ] ]
gap> NmzHasConeProperty(D,"SupportHyperplanes");
true
gap> NmzSupportHyperplanes(D);
[ [ 010 ], [ 100 ] ]
gap> NmzEquations(D);
[ [ 12, -3 ] ]

# doc/_Chunks.xml:42-53
gap> P := NmzCone(["inhom_equations",[[1,2,-3,1]], "grading", [[1,1,1]]]);
<a Normaliz cone>
gap> NmzIsInhomogeneous(C);
false
gap> NmzIsInhomogeneous(P);
true
gap> NmzHilbertBasis(P);
[ [ 1110 ], [ 3010 ], [ 0320 ] ]
gap> NmzModuleGenerators(P);
[ [ 0111 ], [ 2011 ] ]

# doc/_Chunks.xml:59-86
gap> Magic3x3even := NmzCone(["equations",
> [ [111,  -1, -1, -1,   0,  0,  0],
>   [111,   0,  0,  0,  -1, -1, -1],
>   [011,  -1,  0,  0,  -1,  0,  0],
>   [101,   0, -1,  0,   0, -1,  0],
>   [110,   0,  0, -1,   0,  0, -1],
>   [011,   0, -1,  0,   0,  0, -1],
>   [110,   0, -1,  0,  -1,  0,  0] ],
> "congruences",
> [ [100,   000,   000,  2],
>   [001,   000,   000,  2],
>   [000,   000,   100,  2],
>   [000,   000,   001,  2] ],
> "grading",
> [ [111,   000,   000] ] ] );
<a Normaliz cone>
gap> NmzHilbertBasis(Magic3x3even);
[ [ 042420204 ], [ 204420042 ], 
  [ 222222222 ], [ 240024402 ], 
  [ 402024240 ], [ 234531234 ], 
  [ 252333414 ], [ 414333252 ], 
  [ 432135432 ] ]
gap> NmzHilbertSeries(Magic3x3even);
[ t^3+3*t^2-t+1, [ [ 11 ], [ 22 ] ] ]
gap> NmzHilbertQuasiPolynomial(Magic3x3even);
1/2*t^2+t+11/2*t^2-1/2 ]

# doc/_Chunks.xml:92-114
gap> M := [
>  [ 8,  8,  8,  7 ],
>  [ 0,  4,  0,  1 ],
>  [ 0,  1,  0,  7 ],
>  [ 0, -2,  0,  7 ],
>  [ 0, -2,  0,  1 ],
>  [ 848,  817 ],
>  [ 1,  6,  134 ],
>  [ 2,-12, -237 ],
>  [ 4,-24, -414 ]
> ];;
gap> D := NmzCone(["inhom_inequalities", M,
>               "signs", [[1,1,1]],
>               "grading", [[1,1,1]]]);
<a Normaliz cone>
gap> NmzCompute(D,["DualMode","HilbertBasis","ModuleGenerators"]);
true
gap> NmzHilbertBasis(D);
[ [ 1000 ], [ 1010 ] ]
gap> NmzModuleGenerators(D);
[ [ 0001 ], [ 0011 ], [ 0021 ], [ 0031 ] ]

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

[Dauer der Verarbeitung: 0.11 Sekunden, vorverarbeitet 2026-06-13]