2 FUNCTION r9gmit (A, X, ALGAP1, SGNGAM, ALX)
28 DATA eps, bot / 2*0.0 /
30 IF (eps.EQ.0.0) eps = 0.5*r1mach(3)
31 IF (bot.EQ.0.0) bot =
log(r1mach(1))
33 IF (x .LE. 0.0) CALL
xermsg(
'SLATEC',
'R9GMIT',
34 +
'X SHOULD BE GT 0', 1, 2)
37 IF (a.LT.0.0) ma = a - 0.5
41 IF (a.LT.(-0.5)) ae = aeps
53 CALL
xermsg(
'SLATEC',
'R9GMIT',
54 +
'NO CONVERGENCE IN 200 TERMS OF TAYLOR-S SERIES', 2, 2)
56 30
IF (a.GE.(-0.5)) algs = -algap1 +
log(s)
57 IF (a.GE.(-0.5)) go
to 60
71 algs = -ma*
log(x) + algs
72 IF (s.EQ.0.0 .OR. aeps.EQ.0.0) go
to 60
74 sgng2 = sgngam*sign(1.0,s)
75 alg2 = -x - algap1 +
log(
abs(s))
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the base of natural logarithms The constant ex $e satisfies the equation log(e)
function r9gmit(A, X, ALGAP1, SGNGAM, ALX)
may be zero for pure relative error test tem the relative tolerance must be greater than or equal to
subroutine xermsg(LIBRAR, SUBROU, MESSG, NERR, LEVEL)
OCTAVE_EXPORT octave_value_list return the value of the option it must match the dimension of the state and the relative tolerance must also be a vector of the same length tem it must match the dimension of the state and the absolute tolerance must also be a vector of the same length The local error test applied at each integration step is xample roup abs(local error in x(i))<