lz_cotangent
The cotangent of an angle, one over its tangent.
long lz_cotangent( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );
Correctly rounded, in the thread's angle unit. At a pole, such as nought, it returns kDivideByZero, flagged infinite.
Examples
| Call | Answer | Returns |
|---|---|---|
lz_cotangent( 1 ) | 0.642092615934330703006419986594265620 | kNoError |
lz_cotangent( 45 ) degrees | 1 | kNoError |
lz_cotangent( 0 ) | infinite | kDivideByZero |
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_tangentThe tangent of an angle.lz_arccotangentThe angle whose cotangent is the number, arctan(1/x).lzc_cotangentThe cotangent of a complex angle.