addaptic

Reference Hyperbolic functions

lz_hypersecant

The hyperbolic secant, one over the hyperbolic cosine.

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

One over cosh x, between nought and one, correctly rounded; sech 0 is one.

Examples

CallAnswer
lz_hypersecant( 1 )0.648054273663885399574977353226150323
lz_hypersecant( 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