math.e
Use the constant e in a formula.
math.e()The constant e, 2.718281828459045. A call for the same reason as math.pi(). math.exp(1) is the same number.
Parameters
None.
Output
| Name | Type |
|---|---|
value | number |
Warm-up and missing values
- Warm-up
- None.
- Missing values
- Total: a constant, never na.
Example
math.e()plot(math.pow(math.e(), ta.logret(close, 1)), "Growth factor")