addaptic

Reference Trigonometry

lz_arctangent

The angle whose tangent is the number.

long lz_arctangent( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );

The angle in (−π/2, π/2) whose tangent is the operand, correctly rounded in the thread's unit; arctan 1 is exactly 45°. A very large operand gives an angle a hair short of π/2.

Examples

CallAnswer
lz_arctangent( 1 )0.785398163397448309615660845819875721
lz_arctangent( 1 ) degrees45
lz_arctangent( 1E30 )1.570796326794896619231321691638751442

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