addaptic

Reference Hyperbolic functions

lz_hypercotangent

The hyperbolic cotangent, one over the hyperbolic tangent.

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

cosh x ÷ sinh x, correctly rounded. At nought it has a pole: kDivideByZero, flagged infinite.

Examples

CallAnswerReturns
lz_hypercotangent( 1 )1.313035285499331303636161246930847833kNoError
lz_hypercotangent( 0 )infinitekDivideByZero

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