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. move 0 to x move 1 to v move 0.1 to 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.
Messung V0.5
¤ Dauer der Verarbeitung: 0.1 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 und die Messung sind noch experimentell.