addaptic

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

CallAnswerReturns
lzc_tangent( 1 + 1i )0.271752585319511716528843722498588921 + 1.083923327338694543475752061211971721ikNoError
lzc_tangent( 45 + 0i ) degrees1 + 0ikNoError
lzc_tangent( 90 + 0i ) degreesthe point at infinitykDivideByZero

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