IdentificationDivision. Program-Id. Pendulum. * from Stauffer/Stanley * From Newton to Mandelbrot * Springer 1996 DataDivision. Working-StorageSection. 77 x pic S9(4)V9(4). 77 f pic S9(4)V9(4). 77 v pic S9(4)V9(4). 77 dt pic S9(4)V9(4). ProcedureDivision. move0to x move1to v move0.1to dt
L40. move -function sin(x) to f compute v=v+f*dt compute x=x+v*dt display x, v goto L40. End-Program Pendulum.
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 und die Messung sind noch experimentell.