SQRT 3CW "09 March 2006" "mathcw-1.00"
Table of contents
sqrtf, sqrt, sqrtl, sqrtw, sqrtq, sqrtll, sqrtdf, sqrtd, sqrtdl, sqrtdll - square root function
cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]
#include <mathcw.h>
extern float sqrtf (float x);
extern double sqrt (double x);
extern long double sqrtl (long double x);
extern __float80 sqrtw (__float80 x);
extern __float128 sqrtq (__float128 x);
extern long_long_double sqrtll (long_long_double x);
extern decimal_float sqrtdf (decimal_float x);
extern decimal_double sqrtd (decimal_double x);
extern decimal_long_double sqrtdl (decimal_long_double x);
extern decimal_long_long_double sqrtdll (decimal_long_long_double x);
NB: Functions with prototypes containing underscores in type names
may be available only with certain extended compilers.
Compute the square root of the argument, the number such that
sqrt(x) * sqrt(x)
is as close as possible to
x.
Return the square root of the argument.
If the argument is a NaN, return that argument and set errno to
EDOM. If the argument is zero, return that argument,
guaranteeing that sqrt(-0.0) is -0.0, as
required by IEEE 754 and 854. If the argument is nonzero and
negative, return a quiet NaN and set errno to EDOM. If
the argument is +Infinity, return that argument and set errno to
ERANGE.
cbrt(3CW),
pow(3CW),
rsqrt(3CW).