addaptic

Reference Complex inverse functions

lzc_arccosine

The principal arccosine of a complex number.

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

The principal value, each part correctly rounded, the whole angle written in the thread's unit. On the cut beyond 1 it takes the +0 side: arccos 2 is −i arcosh 2. On the real axis inside [−1, 1] it answers as lz_arccosine does, with an exact nought beside it.

Examples

CallAnswer
lzc_arccosine( 2 + 0i )0 − 1.316957896924816708625046347307968444i
lzc_arccosine( 0.5 + 0i ) degrees60 + 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