identificationdivision. program-id. root. * aus Wirth, systematisches Programmieren p. 63 author. "JD". date-written. 15.8.2007. date-compiled. datadivision. working-storagesection.
77 c pic 9(4)V9(4).
77 eps pic 9(4)V9(4) value 0.001. linkagesection.
77 x pic 9(4)V9(4).
77 a pic 9(4)V9(4). proceduredivisionusing x returning a. * computes sqrt(x), 0<x<2 move x to a subtract x from 1 giving c performuntil c<=eps * a*a=x*(1-c), c>=0 compute a = a*(1+0.5*c) compute c = c*c*(0.75+0.25*c) end-perform. * x*(1-eps)/x<=a*a<x. end-program root.
Messung V0.5
¤ Dauer der Verarbeitung: 0.10 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.