math.exp

Euler’s number raised to the power of number. It is the inverse of math.log.

math.exp(const float number) → const float
math.exp(input float number) → input float
math.exp(series float number) → series float
math.exp(simple float number) → simple float
ParameterTypeRequiredDescription
numberconst floatyesThe exponent.

Returns const float or input float or series float or simple float — The result, as a float in the argument’s form.

indicator("Exponential")
plot(math.exp(1.0))

See also math.abs · math.acos · math.asin

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade