Reference Hyperbolic functions
lz_hypertangent
The hyperbolic tangent.
long lz_hypertangent( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );
sinh x ÷ cosh x, between −1 and 1, correctly rounded. Far from nought it is ±1 without working out ex: tanh 100 rounds to one at 36 places.
Examples
| Call | Answer |
|---|---|
lz_hypertangent( 1 ) | 0.761594155955764888119458282604793590 |
lz_hypertangent( 0.5 ) | 0.462117157260009758502318483643672549 |
lz_hypertangent( 100 ) | 1.000000000000000000000000000000000000 |
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
lz_hypercotangentThe hyperbolic cotangent, one over the hyperbolic tangent.lz_archypertangentThe number whose hyperbolic tangent is the operand.lzc_hypertangentThe hyperbolic tangent of a complex number.