Math Functions 485
double fma (x, y, z)
Returns (x× y) + z.
double fmax (x, y)
Returns the maximum of xand y.
double fmin (x, y)
Returns the minimum of xand y.
double fmod (x, y)
Returns the floating-point remainder of dividing xby y.The sign of the result is that
of x.
double frexp (x, exp)
Divides xinto a normalized fraction and a power of two. Returns the fraction in the
range [1/2, 1] and stores the exponent in the integer pointed to by exp. If xis zero,
both the value returned and the exponent stored are zero.
int hypot (x, y)
Returns the square root of the sum of x^2 + y^2.
int ilogb (x)
Extracts the exponent of xas a signed integer.
double ldexp (x, n)
Returns x× 2 n.
double lgamma (x)
Returns the natural logarithm of the absolute value of the gamma of x.
double log (x)
Returns the natural logarithm of x,x≥ 0.
double logb (x)
Returns the signed exponent of x.
double log1p (x)
Returns the natural logarithm of (x + 1),x≥ –1.
double log2 (x)
Returns log 2 x,x≥ 0.
21 0672326663 AppB 6/10/04 2:03 PM Page 485