lz_arcsecant
The angle whose secant is the number.
long lz_arcsecant( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );
arccos(1/x), in [0, π], correctly rounded in the thread's unit; arcsec 2 is exactly 60°. Between −1 and 1 there is no real angle: kFailed, flagged not-a-number.
Examples
| Call | Answer | Returns |
|---|---|---|
lz_arcsecant( 2 ) | 1.047197551196597746154214461093167628 | kNoError |
lz_arcsecant( 2 ) degrees | 60 | kNoError |
lz_arcsecant( 0.5 ) | not a number | kFailed |
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
lz_secantThe secant of an angle, one over its cosine.lz_arccosineThe angle whose cosine is the number.lzc_arcsecantThe principal arcsecant of a complex number.