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

Quelle  Groebner.g   Sprache: unbekannt

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

#! @Chunk Groebner1

LoadPackage( "4ti2Interface" );

#! We want to compute the groebner basis of the ideal
#! defining the affine toric variety associated to the cone
#! generated by the inequalities [ [ 7, -1 ], [ 01 ] ], 
#! i.e. a rational normal curve.

#! @Example
cone := [ [ 7, -1 ], [ 01 ] ];
#! [ [ 7, -1 ], [ 01 ] ]
basis := 4ti2Interface_hilbert_inequalities( cone );;
Sort( basis );
basis;
#! [ [ 10 ], [ 11 ], [ 12 ], [ 13 ],
#!   [ 14 ], [ 15 ], [ 16 ], [ 17 ] ]
groebner := 4ti2Interface_groebner_matrix( basis );;
Sort( groebner );
groebner;
#! [ [ -1001100, -1 ], [ -100200, -10 ],
#!   [ -1010010, -1 ], [ -101010, -10 ],
#!   [ -10110, -100 ], [ -1020, -1000 ],
#!   [ -1100001, -1 ], [ -110001, -10 ],
#!   [ -11001, -100 ], [ -1101, -1000 ],
#!   [ -111, -10000 ], [ -12, -100000 ],
#!   [ 0, -100200, -1 ], [ 0, -101010, -1 ],
#!   [ 0, -110001, -1 ], [ 00, -10110, -1 ],
#!   [ 00, -11001, -1 ], [ 000, -1020, -1 ],
#!   [ 000, -1101, -1 ], [ 0000, -111, -1 ],
#!   [ 00000, -12, -1 ] ]
Length( groebner );
#! 21
#! @EndExample

[Dauer der Verarbeitung: 0.14 Sekunden, vorverarbeitet 2026-06-26]