cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> extern float expf (float x); extern double exp (double x); extern long double expl (long double x); extern __float80 expw (__float80 x); extern __float128 expq (__float128 x); extern long_long_double expll (long_long_double x); extern decimal_float expdf (decimal_float x); extern decimal_double expd (decimal_double x); extern decimal_long_double expdl (decimal_long_double x); extern decimal_long_long_double expdll (decimal_long_long_double x);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
Caution: Because the function grows rapidly for arguments of large magnitude, it approaches Infinity fairly quickly. Also, for arguments of small magnitude, exp(x) - 1 suffers loss of leading significant digits; use the accurate expm1(x) function instead.