Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/fining/examples/gap/   (GAP Algebra Version 4.15.1©)  Datei vom 27.6.2023 mit Größe 694 B image not shown  

Quelle  gpolygons_shadow.g   Sprache: unbekannt

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

#simple example of shadows.
blocks := [
  [ 12345 ], [ 16789 ], [ 110111213 ],
  [ 114151617 ], [ 118192021 ], [ 26101418 ],
  [ 27111519 ], [ 28121620 ], [ 29131721 ],
  [ 36111621 ], [ 37101720 ], [ 38131419 ],
  [ 39121518 ], [ 46121719 ], [ 47131618 ],
  [ 48101521 ], [ 49111420 ], [ 56131520 ],
  [ 57121421 ], [ 58111718 ], [ 59101619 ] ];; 
gp := GeneralisedPolygonByBlocks( blocks ); 
l := Random(Lines(gp)); 
pts := ShadowOfElement(gp,l,1);
List(pts);
p := Random(Points(gp));
lines := Lines(p);
List(lines);
quit;


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