The function extends FORTRAN's generic function COSH to evaluate the complex hyperbolic cosine.
COSH — Complex function value. (Output)
Z — Complex number representing the angle in radians for which the hyperbolic cosine is desired. (Input)
Specific: The specific interface names are CCOSH and ZCOSH.
Double complex: The double complex function name is ZCOSH.
Let ε = AMACH(4) be the machine precision. If |ℑz| is larger than
then the result will be less than half precision, and a recoverable error condition is reported. If |ℑz| is larger than 1/ε, the result has no precision and a fatal error is reported. Finally, if |ℜz| is too large, the result overflows and a fatal error results. Here, ℜz and ℑz represent the real and imaginary parts of z, respectively.
In this example, cosh(-2 + 2i) is computed and printed.
99999 FORMAT (' COSH((', F6.3, ',', F6.3, ')) = (',&
COSH((-2.000, 2.000)) = (-1.566,-3.298)
|
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |