identificationdivision. program-id. recip. * aus Wirth, systematisches Programmieren p. 62 author. "JD". date-written. 15.8.2007. date-compiled. datadivision. working-storagesection. 77 c pic9(4)V9(4). 77 eps pic9(4)V9(4) value0.001. linkagesection. 77 x pic9(4)V9(4). 77 a pic9(4)V9(4). proceduredivisionusing x returning a. * computes 1/x move1to a subtract x from1giving c performuntil c<=eps * a*x=1-c, 0<abs(c)<1 compute a = a*(1+c) multiply c by c end-perform. * (1-eps)/x<=a<1/x. end-program recip.
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.