addaptic

Reference Complex inverse functions

lzc_arccotangent

The principal arccotangent of a complex number, arctan(1/z).

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

arctan(1/z), as lz_arccotangent is arctan(1/x), so arccot(−1) is −π/4. Each part correctly rounded, the whole angle written in the thread's unit. ±i are poles.

Examples

CallAnswer
lzc_arccotangent( 1 + 1i )0.553574358897045251508532730089268520 − 0.402359478108525093650189833306546910i
lzc_arccotangent( −1 + 0i )−0.785398163397448309615660845819875721 + 0i

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