IdentificationDivision. Program-Id. Ising. * from Stauffer/Stanley * From Newton to Mandelbrot * Springer 1996 DataDivision. Working-StorageSection.
01 ispic S9(4)V9(4) occurs 1680.
77 vx pic S9(4)V9(4).
77 vy pic S9(4)V9(4).
77 dt pic S9(4)V9(4). ProcedureDivision. move 40 to L move 0.2 to p compute L1=L+1 compute Lp=L*L+L compute Lm=Lp+L performvarying i from 1 until i>Lm move -1 tois(i) iffunction rnd(i)<p thenmove 1 tois(i) end-perform performvarying it from 1 until it>100 move 0 to m performvarying i from L1 until i>Lp ifis(i-1)+is(i+1)+is(i-L)+is(i+L)=0 then move -is(i) tois(i) addis(i) to m end-perform display it, m end-perform End-Program Ising.
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.