⊕
⊖
Contents
Python math.expm1()
math.expm1(x) function returns the value of e raised to the power of x, minus 1, where e is the base of natural logarithm.
expm1(x) = e^x – 1
Syntax
The syntax to call expm1() function is
math.expm1(x)
where
Parameter | Required | Description |
---|---|---|
x | Yes | A numeric value. |
Examples
In the following example, we find the value of expm1(x) for x = 2.
Output
expm1(x) : 6.38905609893065
Summary
In this Python Examples tutorial, we learned the syntax of, and examples for math.expm1() function.
⫷ Previous Topic Python Math exp()
Next Topic ⫸ Python Math pow()