Lipi Reference
Lipi

Functions

math.exp()

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

Syntax · 1 of 4

                math.exp(const float number) → const float
              

Arguments

number required const float The number to use in the calculation.

Return Type

const float

Syntax · 2 of 4

                math.exp(input float number) → input float
              

Arguments

number required input float The number to use in the calculation.

Return Type

input float

Syntax · 3 of 4

                math.exp(simple float number) → simple float
              

Arguments

number required simple float The number to use in the calculation.

Return Type

simple float

Syntax · 4 of 4

                math.exp(series float number) → series float
              

Arguments

number required series float The number to use in the calculation.

Return Type

series float

Example


          //@lipi=2
indicator("math.exp Example", overlay=false)
growth = math.exp(0.01 * (bar_index % 100))
plot(growth, title="Exponential Growth", color=color.blue)