Home >>Python math Module >Python math.exp() Method
Python math.exp() Method in python is used to return the number in the exponential (Ex) format and it accepts only a number. where E is Euler's number (approximately 2.718281...).
Syntax:math.exp(x)
Parameter | Description |
---|---|
x | It is required a number to float. |
import math
print(math.exp(23))
print(math.exp(-1.23))
import math
v = 1
w = 0
x = 203.2
y = -12.45
z = -76.04
print("exp(v): ", math.exp(v))
print("exp(w): ", math.exp(w))
print("exp(x): ", math.exp(x))
print("exp(y): ", math.exp(y))
print("exp(z): ", math.exp(z))