Home >>Python cmath Module >Python cmath.exp() Method
Python cmath.exp() method in python is used to returns the exponential value and accepts a number and If the number is x, it returns e**x where e is the base of natural logarithms.
Syntax:cmath.exp(x)
Parameter | Description |
---|---|
X | It is Required to find exponential value of a number. |
import cmath
print (cmath.exp(2 + 1))
import cmath
print (cmath.exp(2 + 2))