Reference Hyperbolic functions
lz_hypersecant
The hyperbolic secant, one over the hyperbolic cosine.
long lz_hypersecant( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );
One over cosh x, between nought and one, correctly rounded; sech 0 is one.
Examples
| Call | Answer |
|---|---|
lz_hypersecant( 1 ) | 0.648054273663885399574977353226150323 |
lz_hypersecant( 0 ) | 1 |
Each answer is what Addaptic printed for the call, at 36 places unless a setting is shown.
Returns
kNoError (0) when the answer is written. Otherwise an error code, with the answer flagged infinite or not-a-number; see Errors and flags.
See also
lz_hypercosineThe hyperbolic cosine.lz_archypersecantThe number at or above nought whose hyperbolic secant is the operand.lzc_hypersecantThe hyperbolic secant of a complex number.