Reference Complex exponentials, logarithms, powers and roots
lzc_exp_e
e raised to a complex power.
long lzc_exp_e( CLZComplex* leftOperand, CLZComplex* targetNumber = nullptr );
ea(cos b + i sin b), each part correctly rounded. The angle b is in radians, whatever the thread's unit, so that the exponential and lzc_log_e undo each other. On the real axis it answers as lz_exp_e does, with an exact nought beside it. An answer past the answer limit is refused, kTooLarge, the point at infinity.
Examples
| Call | Answer |
|---|---|
lzc_exp_e( 1 + 1i ) | 1.468693939915885157138967597326604261 + 2.287355287178842391208171906700501809i |
lzc_exp_e( 0 + 1i ) | 0.540302305868139717400936607442976604 + 0.841470984807896506652502321630299000i |
lzc_exp_e( 2 + 0i ) | 7.389056098930650227230427460575007813 + 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.