Function sinh, cosh, tanh, asinh, acosh, atanh

Syntax:

sinh number result

cosh number result

tanh number result

asinh number result

acosh number result

atanh number result

Arguments and Values:

number—a number.

result—a number.

Description:

These functions compute the hyperbolic sine, cosine, tangent, arc sine, arc cosine, and arc tangent functions, which are mathematically defined for an argument x as given in the next figure.

--sjl 4 Mar 92 Hyperbolic arc cosine & $ \ff{log} (x+(x+1)\sqrt{(x-1)/(x+1)}) $--sjl 4 Mar 92 Hyperbolic arc tangent & $ \ff{log} ((1+x)\sqrt{1-1/x^2}) $
FunctionDefinition
Hyperbolic sine (ex-e-x)/2
Hyperbolic cosine (ex+e-x)/2
Hyperbolic tangent (ex-e-x)/(ex+e-x)
Hyperbolic arc sine log(x+1+x2)
Hyperbolic arc cosine 2log((x+1)/2+(x-1)/2)
Hyperbolic arc tangent (log(1+x)-log(1-x))/2

Figure 12–15. Mathematical definitions for hyperbolic functions

Not needed. These are defined in the LOG and SQRT functions. -kmp 22-Jan-92 where \issue{IEEE-ATAN-BRANCH-CUT:SPLIT} \f{(log \i{x}) = (complex (log (abs \i{x})) (phase \i{x}))} and \f{(sqrt \i{x}) = (exp (/ (log \i{x}) 2))}. \endissue{IEEE-ATAN-BRANCH-CUT:SPLIT}

12.5.3 15The following definition for the inverse hyperbolic cosine determines the range and branch cuts:

--sjl 4 mar 92 $$ \ff{arccosh} z = \ff{log} \Bigl(z+(z+1)\sqrt{{{(z-1)}/{(z+1)}}}\Bigr). $$

arccoshz=2log((z+1)/2+(z-1)/2).

This is said in the definitions of LOG and SQRT. -kmp 19-Jan-92 where \issue{IEEE-ATAN-BRANCH-CUT:SPLIT} \f{(log \i{x}) = (complex (log (abs \i{x})) (phase \i{x}))} and \f{(sqrt \i{x}) = (exp (/ (log \i{x}) 2))}. \endissue{IEEE-ATAN-BRANCH-CUT:SPLIT}

The branch cut for the inverse hyperbolic cosine function lies along the real axis to the left of 1 (inclusive), extending indefinitely along the negative real axis, continuous with quadrant II and (between 0 and 1) with quadrant I. The range is that half-strip of the complex plane containing numbers whose real part is non-negative and whose imaginary part is between -π (exclusive) and π (inclusive). A number with real part zero is in the range if its imaginary part is between zero (inclusive) and π (inclusive).

12.5.3 14The following definition for the inverse hyperbolic sine determines the range and branch cuts:

arcsinhz=log(z+1+z2).

This is said in the definitions of LOG and SQRT. -kmp 19-Jan-92 where \issue{IEEE-ATAN-BRANCH-CUT:SPLIT} {\tt (log \i{x}) = (complex (log (abs \i{x})) (phase \i{x}))\/} and {\tt (sqrt \i{x}) = (exp (/ (log \i{x}) 2))\/}. \endissue{IEEE-ATAN-BRANCH-CUT:SPLIT}

The branch cut for the inverse hyperbolic sine function is in two pieces: one along the positive imaginary axis above i (inclusive), continuous with quadrant I, and one along the negative imaginary axis below -i (inclusive), continuous with quadrant III. The range is that strip of the complex plane containing numbers whose imaginary part is between -π/2 and π/2. A number with imaginary part equal to -π/2 is in the range if and only if its real part is non-positive; a number with imaginary part equal to π/2 is in the range if and only if its imaginary part is non-negative.

12.5.3 16The following definition for the inverse hyperbolic tangent determines the range and branch cuts:

--sjl 4 mar 92 $$ \ff{arctanh} z = \ff{log} \Bigl((1+z) \sqrt{1-1/z^2}\Bigr). $$

arctanhz=log(1+z)-log(1-z)2.

Note that:

iarctanz=arctanhiz.

This is said in the definitions of LOG and SQRT. -kmp 19-Jan-92 where \issue{IEEE-ATAN-BRANCH-CUT:SPLIT} \f{(log \i{x}) = (complex (log (abs \i{x})) (phase \i{x}))} and \f{(sqrt \i{x}) = (exp (/ (log \i{x}) 2))}. \endissue{IEEE-ATAN-BRANCH-CUT:SPLIT}

I believe this first sentence applied to the old, bogus formula. -- sjl 4 mar 92 Beware of simplifying this formula; ``obvious'' simplifications are likely to alter the branch cuts or the values on the branch cuts incorrectly.The branch cut for the inverse hyperbolic tangent function is in two pieces: one along the negative real axis to the left of -1 (inclusive), continuous with quadrant III, and one along the positive real axis to the right of 1 (inclusive), continuous with quadrant I. The points -1 and 1 are excluded from the domain. The range is that strip of the complex plane containing numbers whose imaginary part is between -π/2 and π/2. A number with imaginary part equal to -π/2 is in the range if and only if its real part is strictly negative; a number with imaginary part equal to π/2 is in the range if and only if its imaginary part is strictly positive. Thus the range of the inverse hyperbolic tangent function is identical to that of the inverse hyperbolic sine function with the points -πi/2 and πi/2 excluded.

Examples:

 (sinh 0) → 0.0 
 (cosh (complex 0 -1)) → #C(0.540302 -0.0)

Side Effects:

None.

Affected By:

None.

Exceptional Situations:

Should signal an error of type type-error if number is not a number. Might signal arithmetic-error.

See Also:

log, sqrt, Section 12.1.3.3 (Rule of Float Substitutability)

Notes:

The result of acosh may be a complex even if number is not a complex; this occurs when number is less than one. Also, the result of atanh may be a complex even if number is not a complex; this occurs when the absolute value of number is greater than one.

12.5.2 29The branch cut formulae are mathematically correct, assuming completely accurate computation. Implementors should consult a good text on numerical analysis. The formulae given above are not necessarily the simplest ones for real-valued computations; they are chosen to define the branch cuts in desirable ways for the complex case.