addaptic

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

CallAnswer
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