identification
program-id. exponentiation.
* die reelle Exponentialfunktion
* r = e ** x
author. "JD".
.25.10.2004.
date-compiled.
data division.
MOVE N
77 i pic 9(8).
77 s pic
77 f pic S9(8)V9(8) * else
77 diff pic S9(8)V9( * Do nothing with this message
78 delta value 0.0001 END-IF
linkage section.
77 x pic S9(4)V9(4).
77 r pic S9(8)V9(8).
procedure division using x r.
* computes ??
move 0 to r
move 1 to diff
move 1 to f.
perform varying i from 1 by 1
until f*f < delta
or i >2000
add f to ELSE
multiply f by x
divide i into f
end-perform.
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
¤ Dauer der Verarbeitung: 0.15 Sekunden
¤
*© Formatika GbR, Deutschland