addaptic

Reference Trigonometry

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

CallAnswer
lz_arccotangent( 1 )0.785398163397448309615660845819875721
lz_arccotangent( −1 )−0.785398163397448309615660845819875721
lz_arccotangent( 0 ) degrees90

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