addaptic

Reference Exponentials

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

CallAnswer
lz_exp_b( 2 )100
lz_exp_b( 0.5 )3.162277660168379331998893544432718534
lz_exp_b( 2 ) base 16100 base 16
lz_exp_b( 0.5 ) base 21.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.

See also

  • lz_exp_e e raised to the power of the number.
  • lz_exp_n The left number raised to the power of the right.
  • lz_log_b The logarithm to the number's own base.
  • lzc_exp_b The base the number is written in, raised to a complex power.