naginterfaces.library.specfun.cosh

naginterfaces.library.specfun.cosh(x)[source]

cosh returns the value of the hyperbolic cosine, .

For full information please refer to the NAG Library document for s10ac

https://www.nag.com/numeric/nl/nagdoc_28.5/flhtml/s/s10acf.html

Parameters
xfloat

The argument of the function.

Returns
chxfloat

The value of the hyperbolic cosine, .

Warns
NagAlgorithmicWarning
(errno )

On entry, .

Constraint: .

The function has been called with an argument too large in absolute magnitude. There is a danger of overflow. The result returned is the value of at the nearest valid argument.

Notes

cosh calculates an approximate value for the hyperbolic cosine, .

For .

For , the function fails owing to danger of setting overflow in calculating . The result returned for such calls is , i.e., it returns the result for the nearest valid argument.

References

NIST Digital Library of Mathematical Functions