cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> #include <paircw.h> extern void pexpm1f (float_pair result, const float_pair x); extern void pexpm1 (double_pair result, const double_pair x); extern void pexpm1l (long_double_pair result, const long_double_pair x); extern void pexpm1w (__float80_pair result, const __float80_pair x); extern void pexpm1q (__float128_pair result, const __float128_pair x); extern void pexpm1ll (long_long_double_pair result, const long_long_double_pair x); extern void pexpm1df (decimal_float_pair result, const decimal_float_pair x); extern void pexpm1d (decimal_double_pair result, const decimal_double_pair x); extern void pexpm1dl (decimal_long_double_pair result, decimal_long_double_pair x); extern void pexpm1dll (decimal_long_long_double_pair result, decimal_long_long_double_pair x);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
For arguments of small magnitude, pexp(x) - 1 suffers loss of leading significant digits, but the pexpm1(x) function remains accurate.
Caution: Because the function grows rapidly for arguments of large magnitude, it approaches Infinity fairly quickly.