This function evaluates a function closely related to the hyperbolic cosine integral.
CINH — Function value. (Output)
X — Argument for which the function value is desired. (Input)
Generic: CINH (X)
Specific: The specific interface names are S_CINH and D_CINH.
Single: CINH (X)
Double: The double precision function name is DCINH.
The alternate definition of the hyperbolic cosine integral, Cinh(x), is
For
where s = AMACH(1) is the smallest representable positive number, the result underflows. The argument x must be large enough that e−x/x does not underflow, and x must be small enough that ex does not overflow.
Informational error
Type Code
2 1 The function underflows because X is too small.
In this example, Cinh(2.5) is computed and printed.
USE CINH_INT
USE UMACH_INT
IMPLICIT NONE
! Declare variables
INTEGER NOUT
REAL VALUE, X
! Compute
X = 2.5
VALUE = CINH(X)
! Print the results
CALL UMACH (2, NOUT)
WRITE (NOUT,99999) X, VALUE
99999 FORMAT (' CINH(', F6.3, ') = ', F6.3)
END
CINH( 2.500) = 2.031
PHONE: 713.784.3131 FAX:713.781.9260 |