Reference Complex exponentials, logarithms, powers and roots
lzc_exp_b
The base the number is written in, raised to a complex power.
long lzc_exp_b( CLZComplex* leftOperand, CLZComplex* targetNumber = nullptr );
bz, where b is the base z is written in: 10z for a decimal value, 2z for a binary one. Each part correctly rounded. On the real axis it answers as lz_exp_b does.
Examples
| Call | Answer |
|---|---|
lzc_exp_b( 2 + 1i ) | −66.820151019031294624233069665614235821 + 74.398033695749318765841640687551436862i |
lzc_exp_b( 1 + 1i ) base 2 | 1.100010011101100110101110011010000101 + 1.010001110010010111101110101100100110i base 2 |
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.