addaptic

Reference Complex inverse functions

lzc_archypertangent

The principal inverse hyperbolic tangent of a complex number.

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

The principal value, each part correctly rounded, in radians. On the cut beyond 1 it takes the operand's +0 side: artanh 2 is artanh ½ + (π/2)i. ±1 are poles: kUndefinedResult, the point at infinity.

Examples

CallAnswerReturns
lzc_archypertangent( 2 + 0i )0.549306144334054845697622618461262852 + 1.570796326794896619231321691639751442ikNoError
lzc_archypertangent( 1 + 0i )the point at infinitykUndefinedResult

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