1
DOUBLE PRECISION FUNCTION rexp(x)
2
C-----------------------------------------------------------------------
3
C EVALUATION OF THE FUNCTION EXP(X) - 1
4
C-----------------------------------------------------------------------
5
C .. Scalar Arguments ..
9
DOUBLE PRECISION p1,p2,q1,q2,q3,q4,w
11
C .. Intrinsic Functions ..
14
C .. Data statements ..
15
DATA p1/.914041914819518D-09/,p2/.238082361044469D-01/,
16
+ q1/-.499999999085958D+00/,q2/.107141568980644D+00/,
17
+ q3/-.119041179760821D-01/,q4/.595130811860248D-03/
19
C .. Executable Statements ..
20
C-----------------------
21
IF (abs(x).GT.0.15D0) GO TO 10
22
rexp = x* (((p2*x+p1)*x+1.0D0)/ ((((q4*x+q3)*x+q2)*x+q1)*x+1.0D0))
26
IF (x.GT.0.0D0) GO TO 20
27
rexp = (w-0.5D0) - 0.5D0
30
20 rexp = w* (0.5D0+ (0.5D0-1.0D0/w))