addaptic

Reference Hyperbolic functions

lz_archypersecant

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

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

arcosh(1/x), at or above nought, for x above nought and at most one; arsech 1 is nought. At nought it has a pole: kUndefinedResult, flagged infinite. Beyond one there is no real answer: kFailed, flagged not-a-number.

Examples

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

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