addaptic

Reference Complex inverse functions

lzc_archypercotangent

The principal inverse hyperbolic cotangent of a complex number.

long lzc_archypercotangent( CLZComplex* leftOperand, CLZComplex* targetNumber = nullptr );

artanh(1/z), the principal value, each part correctly rounded, in radians: arcoth 0 is −(π/2)i, and arcoth ½ is artanh ½ − (π/2)i. ±1 are poles.

Examples

CallAnswer
lzc_archypercotangent( 0 + 0i )0 − 1.570796326794896619231321691639751442i
lzc_archypercotangent( 0.5 + 0i )0.549306144334054845697622618461262852 − 1.570796326794896619231321691639751442i

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