Python math.exp() Method
Example
Find the exponential value of a number:
#Import math Library
import math
#find the exponential of the
specified value
print(math.exp(65))
print(math.exp(-6.89))
Try it Yourself »
Definition and Usage
The math.exp() method returns the value of Ex, where E is Euler's number (approximately 2.718281...), and x is the number passed to it.
This function is more accurate than math.ex or math.pow(math.e, x).
Syntax
math.exp(x)
Parameter Values
| Parameter | Description |
|---|---|
| x | Required. A number. If we try to find the exponential that is out the range of double it produces an error OverflowError |
Technical Details
| Return Value: | A float value, representing the exponential of a number |
|---|---|
| Python Version: | 1.6.1 |


