Reference Complex circular and hyperbolic functions
lzc_tangent
The tangent of a complex angle.
long lzc_tangent( CLZComplex* leftOperand, CLZComplex* targetNumber = nullptr );
Each part correctly rounded, the whole angle in the thread's unit. On the real axis it answers as lz_tangent does, and a pole there, such as 90°, is the point at infinity, kDivideByZero.
Examples
| Call | Answer | Returns |
|---|---|---|
lzc_tangent( 1 + 1i ) | 0.271752585319511716528843722498588921 + 1.083923327338694543475752061211971721i | kNoError |
lzc_tangent( 45 + 0i ) degrees | 1 + 0i | kNoError |
lzc_tangent( 90 + 0i ) degrees | the point at infinity | 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
lzc_cotangentThe cotangent of a complex angle.lz_tangentThe tangent of an angle.