Main Content

expm1

Compute exp(x)-1 accurately for small values of x

Syntax

y = expm1(x)

Description

y = expm1(x)computesexp(x)-1, compensating for the roundoff inexp(x).

For smallx,expm1 (x)is approximatelyx, whereasexp(x)-1can be zero.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced before R2006a

See Also

||