2 DOUBLE PRECISION FUNCTION d9lgit (A, X, ALGAP1)
29 DOUBLE PRECISION A, X, ALGAP1, AX, A1X, EPS, FK, HSTAR, P, R, S,
32 SAVE eps, sqeps, first
37 sqeps =
sqrt(d1mach(4))
41 IF (x .LE. 0.d0 .OR. a .LT. x) CALL
xermsg(
'SLATEC',
'D9LGIT',
42 +
'X SHOULD BE GT 0.0 AND LE A', 2, 2)
52 r = t/((ax+fk)*(a1x+fk)-t)
55 IF (
abs(p).LT.eps*s) go
to 30
57 CALL
xermsg(
'SLATEC',
'D9LGIT',
58 +
'NO CONVERGENCE IN 200 TERMS OF CONTINUED FRACTION', 3, 2)
60 30 hstar = 1.0d0 - x*s/a1x
61 IF (hstar .LT. sqeps) CALL
xermsg(
'SLATEC',
'D9LGIT',
62 +
'RESULT LESS THAN HALF PRECISION', 1, 1)
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)
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)
double precision function d9lgit(A, X, ALGAP1)
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))<
octave_value sqrt(void) const