lz_arccotangent
The angle whose cotangent is the number, arctan(1/x).
long lz_arccotangent( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );
Defined as arctan(1/x), as DLMF and Mathematica define it, so its range is (−π/2, π/2]: arccot −1 is −π/4, and arccot 0 is π/2. Some texts take (0, π) instead, where arccot −1 is 3π/4.
Examples
| Call | Answer |
|---|---|
lz_arccotangent( 1 ) | 0.785398163397448309615660845819875721 |
lz_arccotangent( −1 ) | −0.785398163397448309615660845819875721 |
lz_arccotangent( 0 ) degrees | 90 |
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_cotangentThe cotangent of an angle, one over its tangent.lz_arctangentThe angle whose tangent is the number.lzc_arccotangentThe principal arccotangent of a complex number, arctan(1/z).