addaptic

Reference Complex circular and hyperbolic functions

lzc_cotangent

The cotangent of a complex angle.

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

Each part correctly rounded, the whole angle in the thread's unit. A pole on the real axis, such as nought, is the point at infinity, kDivideByZero.

Examples

CallAnswerReturns
lzc_cotangent( 1 + 1i )0.217621561854402681365134243605238074 − 0.868014142895924948635849208916273888ikNoError
lzc_cotangent( 0 + 0i )the point at infinitykDivideByZero

Each answer is what Addaptic printed for the call, in radians, 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