Compute exp(x)-1 accurately for small values of x
y = expm1(x)
y = expm1(x) computes exp(x)-1,
compensating for the roundoff in exp(x).
For small x, expm1(x) is
approximately x, whereas exp(x)-1 can
exp | expm | log1p
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries