Docs

math.exp

Raise e to the power of a series, which undoes a natural logarithm.

itm
math.exp(x)

e raised to the power of the value, the inverse of math.log. An argument large enough to overflow gives na rather than an infinity, which is the rule for every non-finite result.

Parameters

A series parameter takes a value on every bar. A constant parameter must be known before the first bar, such as a number or an input.

NameKindTypeDefaultRangeDescription
xSeriesnumber--The value to transform.

Output

NameType
valuenumber

Warm-up and missing values

Warm-up
None.
Missing values
na in, na out. A result outside the finite range is a calculation error.

Example

itm
math.exp(close)
itm
plot(math.exp(ta.cum(ta.logret(close, 1))), "Growth of one")