Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/tst/testspecial/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 18.9.2025 mit Größe 510 B image not shown  

Quelle  mem-overflow.g.out   Sprache: unbekannt

 
gap> # double a list until there is a memory overflow
gap> l:=[1];; while true do Append(l,l); od;
Error, reached the pre-set memory limit
(change it with the -o command line option) in
  Append( l, l ); at *stdin*:3 called from 
<function "unknown">( <arguments> )
 called from read-eval loop at *stdin*:3
you can 'return;'
brk> # ... then we should be in a break loop. Exit that, perform some other computations.
brk> quit;
gap> Factorial(42);
1405006117752879898543142606244511569936384000000000
gap> QUIT;

[ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet)  ]