lz_exp_b
The number's own base raised to the power of the number.
long lz_exp_b( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );
The operand's own base, raised to the operand: 10x for a decimal number, 16x for a hexadecimal one, and so on. Squared, either is written 100 in its own base. It works in that base throughout, with ln b worked out there.
Examples
| Call | Answer |
|---|---|
lz_exp_b( 2 ) | 100 |
lz_exp_b( 0.5 ) | 3.162277660168379331998893544432718534 |
lz_exp_b( 2 ) base 16 | 100 base 16 |
lz_exp_b( 0.5 ) base 2 | 1.011010100000100111100110011001111111 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.