cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> extern float expm1f (float x); extern double expm1 (double x); extern long double expm1l (long double x); extern __float80 expm1w (__float80 x); extern __float128 expm1q (__float128 x); extern long_long_double expm1ll (long_long_double x); extern decimal_float expm1df (decimal_float x); extern decimal_double expm1d (decimal_double x); extern decimal_long_double expm1dl (decimal_long_double x); extern decimal_long_long_double expm1dll (decimal_long_long_double x);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
For arguments of small magnitude, exp(x) - 1 suffers loss of leading significant digits, but the expm1(x) function remains accurate.
Caution: Because the function grows rapidly for arguments of large magnitude, it approaches Infinity fairly quickly.