Type Function Library math.* Return value Number Revision Release 2024.3703 Keywords exp, exponent See also math.log()
Returns the value e^x^.
e^x^
math.exp( x )
Number. The exponent.
print(math.exp(0)) ---> 1 print(math.exp(1)) ---> 2.718281828459