Reference Hyperbolic functions
lz_hypercosine
The hyperbolic cosine.
long lz_hypercosine( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );
(ex + e−x) ÷ 2, from a single ex, correctly rounded; never less than one.
Examples
| Call | Answer |
|---|---|
lz_hypercosine( 1 ) | 1.543080634815243778477905620757061683 |
lz_hypercosine( 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_hypersineThe hyperbolic sine.lz_hypersine_hypercosineThe hyperbolic sine and cosine of one number together, from one exponential.lz_archypercosineThe number at or above nought whose hyperbolic cosine is the operand.lzc_hypercosineThe hyperbolic cosine of a complex number.