Number exp() Method in Python 3:
Description
The exp() method returns exponential of x: ex.
Syntax
Following is the syntax for the exp() method
import math
math.exp( x )
|
Note: This function
is not accessible directly. Therefore, we need to import the math module and then we need to call this function using the math static
object.
Parameters
x- This is a
numeric expression.
Return Value
This method returns exponential of x: ex.
Example
The following example shows the usage of exp() method.
When we run the above program, it produces the following result-