Open System Services Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

log1pl(3) OSS Library Calls Reference Manual
NAME
log1pl - Computes the natural logarithm function of 1.0 plus x for a long double value
LIBRARY
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
#include <math.h>
long double log1pl(
long double x);
PARAMETERS
x Is the long double value for which the natural logarithm is to be calculated.
DESCRIPTION
The log1pl( ) function is a long double version of the log1p( ) function; it takes a long double
argument and returns a long double result.
The log1pl( ) function returns the natural logarithm of (1.0 + x). The value of the x parameter
must be greater than -1.0.
NOTES
The log1pl( ) function can be called only by native processes.
This function supports both IEEE Std 754-1985 floating-point and Tandem floating-point values.
IEEE values can include NaN and infinity, and the sign of 0.0 (zero) can be either positive or
negative. Refer to the fp_class(3) reference page for a description of IEEE value classes.
Guardian functions are available to convert between floating-point formats. Refer to the Guar-
dian Programmer’s Guide for a discussion of floating-point conversions.
RETURN VALUES
The log1pl( ) function returns the natural logarithm of (1.0 + x).
When the value of x is -1.0, log1pl( ) returns - HUGE_VALL and sets errno to [ERANGE].
For IEEE floating-point values, if the value of x is NaN, NaN is returned. When the value of x is
less than -1.0, log1pl( ) returns NaN and sets errno to [EDOM]. When the value of x is positive
infinity, log1pl( ) returns positive infinity.
For Tandem floating-point values, when the value of x is less than -1.0, log1pl( ) returns -
HUGE_VALL and sets errno to [EDOM].
ERRORS
If any of the following conditions occur, the log1pl( ) function sets errno to the corresponding
value:
[EDOM] The value of the x parameter is less than -1.0.
[ERANGE] The value of the x parameter is -1.0.
RELATED INFORMATION
Functions: fp_class(3), isnan(3), log1p(3), log1pf(3).
4122 Hewlett-Packard Company 527187-017