exp() returns e raised to the power x ( input number ) .
Here are some examples with different type of numbers.
import math
print(math.exp(5))    # 148.4131591025766
print(math.exp(0))    # 1.0
Using negative number
import math
print(math.exp(-34.11))   # 1.5353776777478691e-15
print(math.exp(-34.99))   # 6.368484237071642e-16
print(math.exp(-34))      # 1.713908431542013e-15

Using formula and e

The math formula for exp() function is e ** x
import math
print(math.e ** -34.11) # 1.5353776777478719e-15
e : is a numerical constant of value equal to 2.71828
This is the base of natural logarithm and known as Euler's number.

floor() & ceil() modf() expm1()


Post your comments , suggestion , error , requirements etc here

Python Video Tutorials
Python SQLite Video Tutorials
Python MySQL Video Tutorials
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer