Python exp function


Python exp(x) function returns the exponential value of x with natural base e. It is equal to math.e** operator. It's a method of math module.

>>> import math
>>> math.exp(2)
7.38905609893065

>>> math.e**2
7.38905609893065

>>> math.exp(3)
20.085536923187668

>>> math.exp(4)
54.598150033144236