math.exp()

christian.dinh2481 total contributions
Published May 19, 2021Updated Sep 3, 2021
Contribute to Docs
The math.exp()
method returns e raised to the power of a number.
Syntax
math.exp(x)
e is approximately 2.718282.
Example 1
Use math.exp()
to return e raised to the power of 5
:
import mathprint(math.exp(5))# Output: 148.4131591025766
Example 2
Use math.exp()
to return e raised to the power of 3
:
import mathprint(math.exp(3))# Output: 20.085536923187668
Codebyte Example
All contributors
- christian.dinh2481 total contributions
- Anonymous contributorAnonymous contributor3077 total contributions
- Anonymous contributorAnonymous contributor194 total contributions
- christian.dinh
- Anonymous contributor
- Anonymous contributor
Looking to contribute?
- Learn more about how to get involved.
- Edit this page on GitHub to fix an error or make an improvement.
- Submit feedback to let us know how we can improve Docs.