identificationdivision. program-id. exponentiation. * die reelle Exponentialfunktion * r = e ** x author. "JD". date-written. 25.10.2004. date-compiled. datadivision. working-storagesection.
77 i pic 9(8).
77 s pic S9(8)V9(8).
77 f pic S9(8)V9(8).
77 diff pic S9(8)V9(8).
78 delta value 0.0001. linkagesection.
77 x pic S9(4)V9(4).
77 r pic S9(8)V9(8). proceduredivisionusing x r. * computes ?? move 0 to r move 1 to diff move 1 to f. performvarying i from 1 by 1 until f*f < delta or i >2000 add f to s multiply f by x divide i into f end-perform. end-program exponentiation.
¤ Dauer der Verarbeitung: 0.11 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.