Reference Complex circular and hyperbolic functions
lzc_hypercosine
The hyperbolic cosine of a complex number.
long lzc_hypercosine( CLZComplex* leftOperand, CLZComplex* targetNumber = nullptr );
cosh a cos b + i sinh a sin b, each part correctly rounded, in radians whatever the thread's unit; cosh i is cos 1. On the real axis it answers as lz_hypercosine does, with an exact nought beside it.
Examples
| Call | Answer |
|---|---|
lzc_hypercosine( 1 + 1i ) | 0.833730025131149048883885394335094480 + 0.988897705762865096382129540892686189i |
lzc_hypercosine( 0 + 1i ) | 0.540302305868139717400936607442976604 + 0i |
Each answer is what Addaptic printed for the call, 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_hypersineThe hyperbolic sine of a complex number.lz_hypercosineThe hyperbolic cosine.