Skip to content

@math:exp

e raised to a wad-scaled power, in wad (1e18) fixed point. Continuous growth over a period: a rate r compounded continuously multiplies a balance by exp(r).

On-chain (@math:exp!): Accepts live values and carries the result’s wad scale for surrounding arithmetic.

Returns: number

@math:exp(exponent)
NameTypeDescription
exponentnumberWad-scaled exponent, e.g. 0.05e18
# TODO: add examples

Only values known before execution are supported. The result is calculated ahead of time and carries a signed wad scale of 18. Live operands are rejected.