addaptic

Reference Complex inverse functions

lzc_arcsecant

The principal arcsecant of a complex number.

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

arccos(1/z), the principal value, each part correctly rounded, the whole angle written in the thread's unit. Between −1 and 1 on the real axis it takes the cut's +0 side: arcsec ½ is i arcosh 2. Nought is a pole: kUndefinedResult, the point at infinity.

Examples

CallAnswerReturns
lzc_arcsecant( 0.5 + 0i )0 + 1.316957896924816708625046347307968444ikNoError
lzc_arcsecant( 2 + 0i ) degrees60 + 0ikNoError
lzc_arcsecant( 0 + 0i )the point at infinitykUndefinedResult

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