log1pd2

NAME

log1pd2 - return the base-e (natural) logarithms of one more than double elements

SYNOPSIS

Procedure call syntax:

#include <simdmath.h>
vector double log1pd2(vector double x);
Link with -lsimdmath

Inline call syntax:

#include <simdmath.h>
#include <log1pd2.h>
vector double _log1pd2(vector double x);
Parameters  
x input vector

DESCRIPTION

The log1pd2 function returns a vector of the natural logarithms of (1+x) for the corresponding element of x.

This function returns mathematically accurate values even when the corresponding element of x is near 0 because they use a different algorithm from the log function in the open interval (-0.5, 0.5). Outside this range the function defaults to the standard log routine.

RETURN VALUE

The function log1pd2 returns a double vector in which each element is defined as:
  • the natural logarithm for the corresponding element of (1+x).
  • If an element of x is less than 1, the corresponding element of the result is undefined.

ENVIRONMENT

SPU only

CONFORMING TO

SIMD Math library specification for the Cell Broadband Engineā„¢ Architecture.

NOTES

Basis

ISO9899 (C99) log1p functions.

SEE ALSO

log1p(3), log1pf4(3), cbrt(3), cbrtd2(3), cbrtf4(3), exp(3), expd2(3), expf4(3), exp2(3), exp2d2(3), exp2f4(3), frexp(3), frexpd2(3), frexpf4(3), hypot(3), hypotd2(3), ilogb(3), ilogbd2(3), ilogbf4(3), ldexp(3), ldexpd2(3), ldexpf4(3), log(3), logd2(3), logf4(3), log2(3), log2d2(3), log2f4(3), log10(3), log10d2(3), log10f4(3), logb(3), logbf4(3), scalbn(3), scalbnf4(3), sqrt(3), sqrtd2(3), sqrtf4(3)