Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  polymaking.tst   Sprache: unbekannt

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

gap> START_TEST("polymaking tst file");

## generate an empty file>
##
gap> poly:=CreatePolymakeObject();
<polymake object. No properties known>
gap> polyfile:=FullFilenameOfPolymakeObject( poly );;
gap> IsReadableFile(polyfile);
true
gap> IsWritableFile(polyfile);
true
gap> vs:=[ [ 1/41/751/22 ], [ 1/371/621/19 ], [ 1/911/241/88 ],
>   [ 1/591/671/5 ], [ 1/851/311/76 ], [ 1/41/721/44 ],
>   [ 1/471/331/55 ], [ 1/791/211/99 ], [ 1/31/301/12 ],
>   [ 1/711/481/71 ] ]
> ;;

## Write random points to the file and do something
##
gap> AppendPointlistToPolymakeObject(poly,vs);
gap> Polymake(poly,"POINTS");
[ [ 1/41/751/22 ], [ 1/371/621/19 ], [ 1/911/241/88 ], 
  [ 1/591/671/5 ], [ 1/851/311/76 ], [ 1/41/721/44 ], 
  [ 1/471/331/55 ], [ 1/791/211/99 ], [ 1/31/301/12 ], 
  [ 1/711/481/71 ] ]
gap> last=vs;
true
gap> Polymake(poly,"N_FACETS");
14
gap> Polymake(poly,"VOLUME");
56551499691708521629/103286715323123543904000
gap> Polymake(poly,"DIM");
3
gap> Polymake(poly,"ALTSHULER_DET");
4032
gap> Polymake(poly,"AMBIENT_DIM");
3
gap> Polymake(poly,"BALANCED");
true
gap> Polymake(poly,"BALANCE");
1
gap> Polymake(poly,"BOUNDED");
true
gap> Polymake(poly,"COCUBICALITY");
1
gap> Polymake(poly,"DUAL_CONNECTIVITY");
3
gap> Polymake(poly,"DUAL_DIAMETER");
4
gap> Polymake(poly,"ESSENTIALLY_GENERIC");
true
gap> Polymake(poly,"F_VECTOR");
92114 ]
gap> Polymake(poly,"F2_VECTOR");
[ [ 94242 ], [ 422142 ], [ 424214 ] ]
gap> Polymake(poly,"FACES");
[ [  ], [ 1 ], [ 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], 
  [ 12 ], [ 14 ], [ 16 ], [ 18 ], [ 24 ], [ 26 ], [ 29 ], 
  [ 34 ], [ 35 ], [ 37 ], [ 39 ], [ 45 ], [ 47 ], [ 48 ], 
  [ 49 ], [ 59 ], [ 67 ], [ 68 ], [ 69 ], [ 78 ], [ 79 ], 
  [ 168 ], [ 249 ], [ 347 ], [ 678 ], [ 478 ], 
  [ 379 ], [ 679 ], [ 148 ], [ 124 ], [ 269 ], 
  [ 126 ], [ 359 ], [ 459 ], [ 345 ], 
  [ 123456789 ] ]
gap> Polymake(poly,"ADJACENCY");
[ [ 2345678910 ], [ 11121314 ], [ 11151617 ], 
  [ 18192021 ], [ 12151822232425 ], [ 192226 ], 
  [ 1316272829 ], [ 2023273031 ], [ 14242830 ], 
  [ 172125262931 ], [ 4042 ], [ 3940 ], [ 3242 ], [ 3239 ], 
  [ 3340 ], [ 4142 ], [ 3341 ], [ 3445 ], [ 4345 ], [ 3437 ], 
  [ 3743 ], [ 4445 ], [ 3436 ], [ 3639 ], [ 3344 ], [ 4344 ], 
  [ 3538 ], [ 3235 ], [ 3841 ], [ 3536 ], [ 3738 ], [ 46 ], [ 46 ], 
  [ 46 ], [ 46 ], [ 46 ], [ 46 ], [ 46 ], [ 46 ], [ 46 ], [ 46 ], [ 46 ], 
  [ 46 ], [ 46 ], [ 46 ], [  ] ]
gap> Polymake(poly,"FACET_DEGREES");
33333333333333 ]
gap> Polymake(poly,"FACETS");
[ [ 87, -452180044 ], [ -42443748474787219168506179246231655 ], 
  [ 1403725643437067, -190478253, -47332395 ], 
  [ 27853, -108309, -630630351252 ], 
  [ 13885273, -1477537, -280945070, -48335100 ], 
  [ -145029137309911477767226208 ], 
  [ -235790, -456383207648014126013 ], [ 23349, -103132738675, -163130 ]
    , [ -1580061339119581683893208905900843077785 ], 
  [ -20067002225735880568649999187 ], [ -5182638850291555071269 ],
  [ -57421516096535470505617713168 ], 
  [ -519350247285779724855781969216, -256601080 ], 
  [ -230364186316420423428512897123192, -3359875640 ] ]
gap> Polymake(poly,"FAR_HYPERPLANE");
1000 ]
gap> Polymake(poly,"FEASIBLE");
true
gap> Polymake(poly,"N_BOUNDED_VERTICES");
9
gap> Polymake(poly,"N_FLAGS");
1
gap> Polymake(poly,"N_POINTS");
10
gap> Polymake(poly,"N_RIDGES");
21
gap> Polymake(poly,"N_VERTEX_FACET_INC");
42
gap> Polymake(poly,"N_VERTICES");
9
gap> Polymake(poly,"NEIGHBORLINESS");
1
gap> Polymake(poly,"NEIGHBORLY");
true
gap> Polymake(poly,"MINIMAL_VERTEX_ANGLE");
#I  Warning!converting a floating point number
314159265358979/100000000000000
gap> Polymake(poly,"POINTED");
true
gap> Polymake(poly,"POSITIVE");
true
gap> Polymake(poly,"REL_INT_POINT");
526671192497/511438306743012246977/4710636002419163/48078360 ]
gap> Polymake(poly,"SIMPLICIAL");
true
gap> Polymake(poly,"VALID_POINT");
1/41/751/22 ]
gap> Polymake(poly,"VERTEX_BARYCENTER");
526671192497/511438306743012246977/4710636002419163/48078360 ]
gap> Polymake(poly,"VERTEX_DEGREES");
444735546 ]
gap> Polymake(poly,"VERTICES");
[ [ 1/41/751/22 ], [ 1/371/621/19 ], [ 1/911/241/88 ], 
  [ 1/591/671/5 ], [ 1/851/311/76 ], [ 1/41/721/44 ], 
  [ 1/791/211/99 ], [ 1/31/301/12 ], [ 1/711/481/71 ] ]
gap> Polymake(poly,"VERTICES_IN_FACETS");
[ [ 168 ], [ 249 ], [ 347 ], [ 678 ], [ 478 ], 
  [ 379 ], [ 679 ], [ 148 ], [ 124 ], [ 269 ], 
  [ 126 ], [ 359 ], [ 459 ], [ 345 ] ]

## test external files:
gap> dir:=DirectoriesPackageLibrary("polymaking", "tst")[1];;
gap> SetPolymakeDataDirectory(dir);;
gap> plane:=CreatePolymakeObjectFromFile("pplane.poly");
<polymake object. No properties known>

#
gap> Polymake(plane,"FACES DIMS");
fail
gap> Polymake(plane, "FACETS");
[ [ 125 ], [ 126 ], [ 134 ], [ 135 ], [ 146 ], 
  [ 234 ], [ 236 ], [ 245 ], [ 356 ], [ 456 ] ]

#
gap> STOP_TEST("polymaking.tst", 10000);

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

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik