math.exp
Raise e to the power of a series, which undoes a natural logarithm.
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.
| Name | Kind | Type | Default | Range | Description |
|---|---|---|---|---|---|
x | Series | number | - | - | The value to transform. |
Output
| Name | Type |
|---|---|
value | number |
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
math.exp(close)plot(math.exp(ta.cum(ta.logret(close, 1))), "Growth of one")