addaptic

Reference Powers and roots

lz_raise_e

e raised to a whole power.

long lz_raise_e( CLZNumber* leftOperand, CLZNumber* targetNumber = nullptr );

By repeated squaring. A fraction is refused, kFailed, flagged not-a-number; lz_exp_e takes any power.

Examples

CallAnswerReturns
lz_raise_e( 2 )7.389056098930650227230427460575007813kNoError
lz_raise_e( −1 )0.367879441171442321595523770161460867kNoError
lz_raise_e( 2.5 )not a numberkFailed

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_raise_n The left number raised to a whole power, the right.