addaptic

Reference Hyperbolic functions

lz_archypercosine

The number at or above nought whose hyperbolic cosine is the operand.

long lz_archypercosine( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );

ln(x + √(x² − 1)), at or above nought, for x at least one; arcosh 1 is nought. Below one there is no real answer: kFailed, flagged not-a-number. lzc_archypercosine gives the complex one.

Examples

CallAnswerReturns
lz_archypercosine( 2 )1.316957896924816708625046347307968444kNoError
lz_archypercosine( 1 )0kNoError
lz_archypercosine( 0.5 )not a numberkFailed

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