addaptic

Reference Complex circular and hyperbolic functions

lzc_sine

The sine of a complex angle.

long lzc_sine( CLZComplex* leftOperand, CLZComplex* targetNumber = nullptr );

sin a cosh b + i cos a sinh b, each part correctly rounded. The whole complex angle is read in the thread's unit, so z degrees is zπ/180, both parts. On the real axis it answers as lz_sine does, with an exact nought beside it, and in a unit a part whose sine or cosine is exactly nought is an exact nought.

Examples

CallAnswer
lzc_sine( 1 + 1i )1.298457581415977294826042365807815620 + 0.634963914784736108255082202991509782i
lzc_sine( 30 + 0i ) degrees0.5 + 0i
lzc_sine( 90 + 1i ) degrees1.000152312576256464396074609835971008 + 0i

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