cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ] #include <mathcw.h> #include <paircw.h> extern void phypotf (float_pair result, const float_pair x, const float_pair y); extern void phypot (double_pair result, const double_pair x, const double_pair y); extern void phypotl (long_double_pair result, const long_double_pair x, const long_double_pair y); extern void phypotw (__float80_pair result, const __float80_pair x, const __float80_pair y); extern void phypotq (__float128_pair result, const __float128_pair x, const __float128_pair y); extern void phypotll (long_long_double_pair result, const long_long_double_pair x, const long_long_double_pair y); extern void phypotdf (decimal_float_pair result, const decimal_float_pair x, const decimal_float_pair y); extern void phypotd (decimal_double_pair result, const decimal_double_pair x, const decimal_double_pair y); extern void phypotdl (decimal_long_double_pair result, const decimal_long_double_pair x, const decimal_long_double_pair y); extern void phypotdll (decimal_long_long_double_pair result, const decimal_long_long_double_pair x, const decimal_long_long_double_pair y);
NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.
Caution: The mathematically-equivalent formula psqrt(result, xsquare, ysquare) is not robust, and should not be used.