math.exp()

Type Function
Library math.*
Return value Number
Revision Current Public Release (2017.3068)
Keywords exp, exponent
See also math.log()

Overview

Returns the value e^x^.

Syntax

math.exp( x )
x (required)

Number. The exponent.

Examples

print(math.exp(0))   ---> 1
print(math.exp(1))  ---> 2.718281828459