LOG8 3CW "10 June 2007" "mathcw-1.00"

Table of contents


NAME

log8f, log8, log8l, log8w, log8q, log8ll, log8df, log8d, log8dl, log8dll - base-8 logarithm function

SYNOPSIS

cc [ flags ] -I/usr/local/include file(s) -L/usr/local/lib -lmcw [ ... ]

#include <mathcw.h>

extern float log8f (float x);

extern double log8 (double x);

extern long double log8l (long double x);

extern __float80 log8w (__float80 x);

extern __float128 log8q (__float128 x);

extern long_long_double log8ll (long_long_double x);

extern decimal_float log8df (decimal_float x);

extern decimal_double log8d (decimal_double x);

extern decimal_long_double log8dl (decimal_long_double x);

extern decimal_long_long_double log8dll (decimal_long_long_double x);

NB: Functions with prototypes containing underscores in type names may be available only with certain extended compilers.


DESCRIPTION

Compute the base-8 logarithm of x.

Caution: Avoid use of log8(1 + x) for small-magnitude x; use log81p(x) instead to avoid serious accuracy loss.


RETURN VALUES

Return the base-8 logarithm of the argument.

ERRORS

If the argument is negative or zero, set errno to EDOM and return a quiet NaN. If the argument is a NaN, set errno to EDOM and return the argument. If the argument is +Infinity, set errno to ERANGE and return the argument.

SEE ALSO

exp(3CW), expm1(3CW), exp2(3CW), exp2m1(3CW), exp8(3CW), exp8m1(3CW), exp10(3CW), exp10m1(3CW), exp16(3CW), exp16m1(3CW), log(3CW), log1p(3CW), log2(3CW), log21p(3CW), log81p(3CW), log10(3CW), log101p(3CW), log16(3CW), log161p(3CW).